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 Login with HTTP post, get results
How can I trigger the Google Play Store's auto update mechanism?
Xamarin Signed Release apk will install but not run
Are Systems apps and user apps with root access same?
String resource cannot be found
Android - Universal Image Loader is laggy when scroll on GridView
Why can't I get KeyEvent.ACTION_DOWN in some situation in Android?
How to list all Dir files in a ListBox in Android
Dismissed dialog fragment reappears again when app is resumed
Working with objects on android
Retrofit Return Simple String
android intent putExtra Parsefile
Take action after activity setup is complete
object of SQLiteOpenHelper only can be declared in onAttach and null elsewhere
Why does the android apk size differs when built from windows and mac
create multi support screen with psd file

Categories

HOME
android
django
codenvy
css3
object
swt
access
emscripten
tail
maxscript
nstableheaderview
recordrtc
bing-maps
little-proxy
openpyxl
text-mining
xcodebuild
stellar.js
flatpak
altera
coin3d
microsoft-dynamics-nav
digital-signature
apache2.4
breadth-first-search
undertow
hta
draft-js-plugins
opentk
gpio
appirater
google-earth
powershell-ise
angularjs-material
jett
hreflang
installscript
slacktextviewcontroller
searchkit
sql-server-ce
imagenet
jvmti
apache-stanbol
claims
avcapturedevice
puredata
servermanager
term
openblas
vibrate
rmongo
cronexpression
autosar
hadoop-2.7.2
microstation
google-cloud-console
appscale
qiime
cfchart
spreadjs
phpwebsocket
invoke-sqlcmd
cycle2
piracy-prevention
rasterize
asyncdisplaykit
opl
dynatree
rewrite
vigenere
sony-lifelog-api
ansi
alloy-ui
theos
angular-gettext
nsmenu
personalization
grails-domain-class
ios8-extension
terminate
synapse
accesscontrolexception
high-resolution
windows-98
swfobject
alice
pstack
nokia-s40
htdocs
catransform3d
socketserver
cloudfiles
presentation-layer
filesystemobject
sun
google-wave
alsb

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