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

Shows nothing when changing the fragment from another fragment
How to call a function of different activity from another activity [duplicate]
setTabSFromPagerAdapter is deprecated
Couldn't run protractor scripts on Android emulator
Current Activity crashes while launching third party application
How to create Library Project in Android Studio with Resource [duplicate]
Android pausing Service, Thread, Asynctask? Using a handler with postdelayed for this?
On Linear Layout, android:animateLayoutChanges=“true” so same layout animating changes while other layouts relative to this are not animating
Proximity Beacon API vs Android Beacon Library?
App with own soft keyboard by default
Android: Change edittext style
Error:Execution failed for task ':packageAllReleaseClassesForMultiDex'
Deleting items in a listView and database
Battery drain issues with Android GPS recording service
Disable swipe for open drawer but NOT for closing
Forbidden to downgrade version error while attempting to upgrade Google Play Store

Categories

HOME
algorithm
deep-learning
developer-tools
github-for-windows
saml-2.0
grafana
spring-data-mongodb
soa
visual-studio-emulator
square
tvos
python-multithreading
code-coverage
jax-ws
boto3
openstreetmap
commonjs
fhir
jxl
screen-readers
modbus-tcp
question2answer
joptionpane
dynamically-generated
definitelytyped
stackexchange
8051
spotipy
ceylon
iis-express
scrollview
recurring-events
dst
simplecv
biztalk-rule-engine
least-squares
python-pptx
apic
connection-pool
ods
visa
plaintext
vmware-fusion
branching-and-merging
glm-math
claims
phpdbg
wcftestclient
tinymce-3
x-ray
corruption
truezip
pdf-conversion
grails-plugin
winusb
seek
drawstring
hclust
vorpal.js
firebase-security
observablecollection
deep
highland.js
custom-errors
flock
rubaxa-sortable
slash
dnssec
teamcity-9.1
document-repository
at-job
jbake
addressing-mode
big-ip
jjaql
ios8-extension
synapse
scrypt
mongohq
video-codecs
wcf-configuration
fusefabric
appjs
relative
pinch
entitydatasource
appledoc
socketserver
dot-emacs
filesystemobject
todos
blind
mathematical-typesetting

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