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

How to use getMapAsync() instead of getMap()
Finding a Fragment after configuration change
running parallel tests - genymotion and cucumber
Error compiling mtpd/mtpd.o: undefined reference to `android_get_control_socket'
How to arrange the chip in second row when the first row is filled in linear layout horizontal?
Want to add horizontal spacing between cards of CardView in android?
Indoor map in android
Error “No static method isCtrlPressed” in Android
Android.mk File: Relative path of all directories and subdirectories
Android change the name of app which is to installed on homescreen
how to set value from textwatcher to specific multiple textviews in android
ExifInterface: Invalid image.java.io.IOException
Reset all checkbox in Android
How to implement Firebase Google Signin in Android?
Android unzip zip file from internal storage
java.lang.NoSuchMethodError: android.net.http.SslError.b

Categories

HOME
algorithm
eclipse
facebook-oauth
jwplayer
pclxl
newrelic
rds
lanczos
qpython
openstreetmap
gson
package.json
null-pointer
intershop
vuejs
microsoft-ocr
spring-async
babel
direct3d11
gmock
shared
openmdao
sqsh
autodesk-designautomation
cognos-bi
jett
dsx-desktop
android-maps-extensions
gnat-gps
fiware-cygnus
video-capture
engine.io
lint
nohup
bc
setup.py
mcustomscrollbar
subclipse
apollostack
snapchat
linter
openrasta
yii2-api
dtsearch
tf
openblas
convex-optimization
carrot2
tinkerpop
context-sensitive-grammar
compiler-design
check-mk
bbpress
polyline
autosar
winusb
myspace
resourcemanager
scaffolding
dup
cda
fink
thread-sleep
user-management
qt5.2
iokit
phonertc
sapscript
visual-sourcesafe-2005
batik
viola-jones
uvc
j-security-check
document-repository
ejb-2.x
dbaccess
sonarqube-5.0
insight.database
cuba
dsym
xmltodict
model-driven-development
kaleidoscope
octal
android-icons
windows-98
wimax
dopostback
cuda-gdb
koken
jquery-address
luabind
ikimagebrowserview
saxparseexception
catransform3d
webdev.webserver
svk
folding
movieplayer
idatareader

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