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

Genymotion emulator not detecting sound
How to open the search by clicking a custom button in android? [closed]
How to recognize touch on the home screen
Django REST Framework: Directly display on results list in GenericView
Android app with Google+ API: Client ID or Android ID?
Cannot be cast to android.app.activity
TextToSpeech OnUtteranceCompletedListener causes delay
parse string into jsonarray in android
Animate adding item and item movement in listview like Google Plus app
how to move an image along circle in android?
How to use image as a map with zoom level in android
RuntimeException with Samsung Galaxy — Flashlight
Android - how to completely disable keyguard
Android PhoneGap does not support CSS3 Flexbox
Responsive css not working properly
Layout design in android having TextView with image

Categories

HOME
awk
cheerio
forms
gpu
javacc
aws-cli
settings
barcode
elasticsearch-5
32bit-64bit
enthought
heap
intercom
plink
magnetic-cards
heat
alpacajs
firefox-addon
asp.net-mvc-viewmodel
wolframalpha
jmp
selinux
kendo-mobile
libigl
ckfinder
moses
opentk
browser-sync
dotspatial
mobx
complex-numbers
mustache
record
deltaspike
laravel-eloquent
sim-toolkit
android-softkeyboard
softmax
dbnull
android-checkbox
strftime
configurationmanager
rserve
qtranslate
truezip
ngmaterial
cup
oozie-coordinator
template-toolkit
cmp
cd-burning
rsa-archer-grc
cronexpression
chromium-os
i386
createprocess
findfirst
np-spring
realsense
jaunt-api
grgit
evolus-pencil
uncompress
entity-framework-4.3
theos
uncaught-typeerror
teaspoon
psr-4
verold
lnk
tinyxml
jquery-slider
vsx
sbcl
gwt-openlayers
unit-of-work
inappsettingskit
nevron
workitem
pclzip
redis-py
zope.interface
fitbounds
stress
massive
msr
photolibrary
objective-j
sifr
qtabbar
localizable.strings
information-management
httpcookie

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