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

Android Async Consume Web Service
Footprint of a looping ViewPager
Do I need to authenticate user each time user uses my android app
ksop2 java.io.IOException: Transport endpoint is not connected
Could not change string on android app
update location in the background
How to access views inside listview
Android: Store Data of Radiobuttons
The resolution of android emulator of SDK tools R21 is not good as the old version?
Make OnTouchListener update all the time
Importing android existing project
A button above a webview in a PopupWindow responds for onClick after 2 times
Android - Show alert dialog in AsyncTask
Android Update TextView via Handler on separate thread
Check which app run second
How to animate marker in android map api V2?

Categories

HOME
service-worker
gpu
flex
jelastic
sh
bitbucket-api
javacc
newrelic
parameters
big-o
bookmarks
jtextpane
title
joomla3.0
bing-maps
rcloud
openpyxl
plist
project-intu
rtf
filechannel
jsonpath
favicon
pybossa
docx
mongodb-csharp
symfony-2.8
dynamic-sql
mvc-mini-profiler
red5
google-container-registry
enterprise-miner
roslyn
visual-studio-extensions
pchart
tosca
monit
dapper-extensions
opentk
custom-post-type
asymptotic-complexity
entity-relationship-model
8051
left-join
batching
numpy-broadcasting
openalpr
git-rewrite-history
release
google-data-api
android-ibeacon
preloader
linqpad
file-sharing
jboss-4.2.x
ntvs
term
mschart
identification
payara-micro
arq
boxing
janus
pybrain
swingworker
polyline
stripe-connect
cronexpression
docpad
angular2-testing
omxplayer
actor-platform
webjars
synonym
observablecollection
jclouds
omniauth-facebook
lua-telegram-bot
kendo-upload
maybe
boomerang
grgit
gocql
.bash-profile
lasso
pyobjc
nsurlsessiondatatask
java-security
procedural-programming
cryptographichashfunction
cosine-similarity
sip-server
human-computer-interface
mdichild
maven-scm
kaleidoscope
octal
onload-event
apache-abdera
alice
pstack
fragmenttransaction
sentestingkit
cuda-gdb
josql
fitbounds
w3c-geolocation
xui
http-daemon
unattended-processing
silent
addchild
lxr
strtod
mathematical-notation
sqlobject
xslcompiledtransform

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