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 width of a text view in an action bar?
Appcelerator Tableview not displaying rows when returning to View
Google places api's in android
Android Volley ImageLoader::get is very slow and blocks the UI
In Android, I am not able to access a TextView( which is in MainActivity) from a different class
Xamarin function error
custom buttons on android studio
android printwriter of outputStream print data conversely
App instantly crashing when attempting to store edittext values
android fragment not showing the previous position after transaction
Error:(66, 30) No resource found that matches the given name: attr 'textColor'
ArrayIndexOutOfBounds Exception in listview
Firebase Google Login for two clients
Creating secondary progress bar using multiple clips drawable
How to build Android SDK tools such as chimpchat or ddmlib?
I need to show .pptx and .ppt file in android using third parties API

Categories

HOME
go
string
angular2-material
grafana
rds
cakephp-3.4
limit
mvc5
azure-container-service
flume
barcode
discrete-mathematics
jquery-ui-sortable
google-schemas
openpyxl
jxl
keytool
esoteric-languages
dynamic-sql
soci
foreign-keys
digital-signature
cgbitmapcontext
string-concatenation
interpreter
siri
opentk
pylons
asymptotic-complexity
jaws
carrierwave
sqsh
autodesk-designautomation
eviews
dst
deltaspike
clickjacking
installscript
yowsup
apic
watchman
reactivekit
password-protection
mongoose-schema
signals-slots
setup.py
apache-stanbol
sharp-snmp
subclipse
microsoft-metro
apollostack
android-exoplayer
berkeley-db-je
monkey-testing
mesosphere
facebook-pixel
scalding
appdomain
spring-data-couchbase
pybrain
shinobi
chromium-os
cudd
neon
jodd
i386
udpclient
tracker-enabled-dbcontext
kiosk
createprocess
piracy-prevention
sciruby
rewrite
sapscript
ocra
rdflib
shopizer
variadic-templates
rapidsvn
ghcjs
deform
cbind
tweenlite
rcaller
functional-java
renderer
git-repo
sbcl
multitasking
rfc5322
mt4j
sphinxql
http-patch
modular
script#
asdf
facebook-timeline
server-administration
preload
fusefabric
box2d-iphone
flex-mobile
massive
twitterizer
wcf-instancing
business-model

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