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

Camera2 preview streched when cropping with SCALER_CROP_REGION
Optimize website for mobile landscape view
what could be the reason even if check isFinishing() it still gets IllegalStateException: Can not perform this action after onSaveInstanceState
Set border TextView not in in Android 4.2.2
Glide, Picasso or AsyncTask doesn't work in my RecyclerView
Layout for aptitude learning app. Which ViewGroup to use when the questions and the option occures?
API Level for Google Maps Interactive Polylines?
Can't pass Object via intent in Android N
Firebase onChildAdded() event not triggered sometimes/ after idle time
Android custom checkbox for set custom font
I can't run my android application on Marshmallow but it works on lower version [duplicate]
Send a notification to another user within the same sqlite database
PagerAdapter crashing
Error: Duplicate resources in Android Studio
Android. Do I need to dispose Maybe inside onBindViewHolder?
getting 403 disallowed user agent in Auth0 Lock for Android

Categories

HOME
fuelux
nunit
pda
yahoo-finance
graphics
requirements
spring-data-redis
appcelerator
javacc
cublas
vxml
3d-reconstruction
jetty
azure-container-service
odoo-8
nstableheaderview
reactive-programming
endeca
pega
pybossa
magnetic-cards
docx
bitnami
azure-iot-hub
dynamic-sql
intershop
chargify
jersey-1.0
imessage
springfox
visual-studio-extensions
highstock
gpio
winexe
cppreference
ntp
google-cast
erb
lubridate
servicestack-text
watchman
reactivekit
filesystemwatcher
sim-card
chef-solo
setup.py
apriori
android-softkeyboard
linqpad
claims
android-checkbox
xmldocument
file-sharing
wc
memory-mapping
dynamic-linq
openresty
reportservice2010
datamaps
singleinstance
stdmap
appdomain
oracleclient
node-request
pacemaker
centrifuge
envi
myspace
jboss-tools
dbamp
phpwebsocket
vhosts
gocql
themoviedb-api
iokit
xenomai
page.js
rpart
sql-server-data-tools
keyup
bufferedinputstream
broadband
easyrtc
memset
dot42
jammer
asdf
ui-select2
dajaxice
pylucene
msr
cloudfiles
qglwidget
luajava
resharper-6.0
uideviceorientation
delimited-text
hbm2java
scrollbars
burndowncharts
asynchronous-wcf-call
information-management
blind
pnrp

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile