android


Gif image is not showing its animation in android application


In my android application, I am using universal image loader to show images from url. During loading of image I want a gif image to be shown. But the gif image added is not showing any animation.
Here is my code to display image.
private static final DisplayImageOptions.Builder DEFAULT_DISPLAY_IMAGE_OPTIONS_BUIDLER = new DisplayImageOptions.Builder()
.imageScaleType(ImageScaleType.IN_SAMPLE_POWER_OF_2)
.displayer(new FadeInBitmapDisplayer(300, true, false, false))
.showImageForEmptyUri(R.drawable.default_image)
.showImageOnLoading(R.drawable.loadingx)
.showImageOnFail(sampleapp.sample.com.sampleapp.R.drawable.default_image).cacheOnDisk(true)
.cacheInMemory(true).bitmapConfig(Config.ARGB_8888);
what changes should I make to show an animated gif image during loading time image
Universal Image Loader doesnot Support Gif see this Try using other libraries like Glide which supports gif
Glide.with(context)
.load(imageUrl)
.asGif()
.placeholder(R.drawable.yourgif)
.crossFade()
.into(imageView);
Try to use glide for gif image loading...
Glide
.with( context )
.load( gifUrl )
.asGif()
.error( R.drawable.full_cake )
.diskCacheStrategy(DiskCacheStrategy.SOURCE)`
.into( imageViewGif );
to understand follow the link below -
enter link description here

Related Links

How to get the list of all calendars of the user?
How exactly use quickblox in android?
toggle listview content in nativescript with angular
React native android app crash on start when import firebase on release only
Error app:transformClassesWithInstantRunForStagingDebug
Playing video saved in IOS on Android
Android mediaController plays iPhone-uploaded videos but error on Android-uploaded videos
How to use a custom debug.keystore in Delphi?
MPAndroidChart in android
Best way to output preview of MediaRecorder file from Camera2?
How to set data for textview using bundle in fragment? [duplicate]
Open video from gallery and Intent VideoView to new activity
Setting height of ImageView in Horizontal LinearLayout
After updating android studio to 2.3 getting error “Error while Installing APKs” in MI4
Add the card item on the top of the SwipePlaceHolderView in android
Draw arrow head at end of Line on canvas

Categories

HOME
fuelux
webdriver
angular2-material
3d
toolbox
fftw
alarm
3d-reconstruction
gembox-spreadsheet
interpolation
jquery-ui
syntaxnet
siddhi
nancy
shared-libraries
selectize.js
android-intent
package-managers
mvc-mini-profiler
dreamweaver
red5
vuejs
xmonad
sse
cfml
database-connection
sar
guzzle
jquery-ias
ios10.2
mount
ckfinder
itunes
beautifier
jquery-multiselect
gpio
licensing
fragment-backstack
angular-translate
spotipy
uitapgesturerecognizer
realm-mobile-platform
dotspatial
recurring-events
hibernate-validator
hreflang
indy10
imx6
engine.io
openerp-7
xcode7.3
zoomify
railstutorial.org
health-monitoring
css-position
hackintosh
print-css
knime
clarifai
dtsearch
stdmap
skin
cpu-cache
cmp
mathcad
taocp
docpad
meteor-packages
grails-plugin
latin
gogs
lean
pre-build-event
lz77
halcon
invoke-sqlcmd
jparsec
libvlc
character-replacement
toran-proxy
avisynth
oracle-spatial
video-player
rubaxa-sortable
slash
baasbox
jsvc
pyobjc
keyup
canvg
telepat
aspectj-maven-plugin
entity-framework-4.3
osc
nodelist
linkedin-jsapi
imagefilter
jama
mutual-authentication
terminate
authlogic
koala
sbcl
windows-embedded-standard
kendo-dataviz
beaker-testing
neos-server
nevron
dolby-audio-api
stacky
http-status-code-410
fb.ui
joomla3.1
faye
koken
infobright
node-redis
multiplatform
tmx
ie-compatibility-mode
addchild
skype4java
online-storage

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App