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

Adding Events to the calendar view Dynamically in android
Setup application while installation on android
DrawerLayout: hide item on drawer open
Getting all pins of a specific user Pinterest
Hexadecimal value in android xml file
SensorManager type Accelerometer not working on Galaxy Tab 3 Lit 7.0"
How to implement Android mirroring application, using spydroid library and media projection?
Android: Take image from any source
Best practice for defining width & height for Android UI elements
Android multiple widget instance with same ID
The target server failed to respond! why this error in 000webhost?
Getting audio file path or uri from mediastore
How can i set action bar color with transition?
Show notification when User go to a specific location
android home up icon is showing instead of action bar drawer toggle menu icon
How do I make a button in Android scale instead of cropping?

Categories

HOME
fabricjs
assembly
adal
youtube-data-api-v3
composite-primary-key
requirements
error-handling
mapbox
nuget-package
google-admin-sdk
qpython
little-proxy
octave
reactive-programming
emoji
google-form
intercom
gkturnbasedmatch
comsol
capistrano3
aws-sdk
selinux
asciidoctor-pdf
ksh
joptionpane
highstock
motion-detection
angular-translate
soot
rpgle
datastax-enterprise-graph
user-defined-functions
aws-codecommit
kudu
jbutton
code-snippets
login-script
joomla2.5
latitude-longitude
apns-php
jvmti
urlsession
vmware-fusion
wc
httr
ovf
openal
video-conferencing
semantic-logging
java-bytecode-asm
observablecollection
omniauth-facebook
data-protection
halcon
sciruby
terracotta
qt5.2
r-package
roadkill-wiki
opserver
typemock
mraid
infosphere-spl
delayed-execution
packet-sniffers
machine-instruction
mdichild
verold
matrix-inverse
alternate
draw2d-js
square-bracket
openargs
cffile
scmmanager
swfobject
pdfviewer
vfs
boost-signals
azman
convention
expression-blend-4
event-receiver
cloudfiles
nhprof
objective-j
load-time
uideviceorientation
easyb
office-2007
drupal-fivestar
ajax-polling
skype4java
interop-domino
soappy

Resources

Encrypt Message