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

CountDownTimer not accurate
How to set permission “publish_actions” in LoginButton using facebook sdk?
HttpResponse return org.appache.http.conn.BasicManagedEntity when sending data to wcf
CSS from URL not working in JSoup
First Web API call delay, from Android application
Android - where it is the best place to store a list of images locally?
Eclipse ADT: Device not found
How to find Fitness API on Developer Console for Google Fit Project?
Invalid short purchase tokens
onListItemClick not working in fragment
Count the Images form sd card [closed]
GreenDao Android Studio
Custom Menu on button click as drop down
SQLite update query in Titanium Alloy
Within same Activity one fragment will portrait and another one is landscape
android sending facebook token to server and publishing to feed

Categories

HOME
fabricjs
prism
developer-tools
codenvy
case
serialization
jwplayer
solver
cublas
alsa
dojo
gembox-spreadsheet
onclick
azure-container-service
title
pattern-matching
resultset
automatic-ref-counting
onedrive-api
dynatrace
libusb
dreamweaver
boost-icl
selinux
breadth-first-search
siri
google-cloud-print
maze
ms-access-web-app
entity-relationship-model
alm
mustache
dumpbin
instantiation
installshield-le
mnist
protege4
google-earth-engine
demo
portforwarding
preloader
show-hide
facebook-social-plugins
datamaps
page-replacement
video-conferencing
taocp
simplepie
myspace
hclust
http-status-code-401
boost-serialization
createprocess
lz77
beanstalk
custom-errors
pypiserver
vigenere
coda
rpart
atoi
typemock
canvg
nutiteq
snackbar
at-job
ghcjs
crowd
post-commit-hook
spy++
human-computer-interface
cancellation
vbe
qscrollarea
modular
inappsettingskit
observium
ui-select2
http-status-code-410
dopostback
pstack
wiimote
jquery-address
urlrewriter
relative
jquery-tools
unattended-processing
timertask
office-2007
web-garden
scrollbars
lxr
cardspace
appliance

Resources

Encrypt Message