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

Android: Create and Download PDF files to Downloads directory
Android Firebase how to retrieve one record by ID?
How to find mfcc in android
How to show multiple images inside Linear Layout?
Prevent users from disabling Google ads in android application
Android - share the app link to Facebook
errors in failed to resolve in intellij idea 2017.1.2
ArrayListAdapter - ListView animations
The anti-theft does not work as it should
Android - Spinner not correctly aligning to end of parent
How to make bar chart values drawn vertically in MPCharts [duplicate]
Re-position MyLocation button inside Google Map fragment
iOS and Android Bluetooth Receiver/Relay?
RxAndroidBle stopped when discovering another BLE device
Proguard duplicate zip entry error in eventbus library
Connect Android emulateur to internet

Categories

HOME
service-worker
uml
phpword
api
cobalt
merge
ggplot2
amp-html
formal-languages
numbers
composite-primary-key
spring-data-redis
owl-carousel
yandex
mvc5
crystal-lang
fosrestbundle
endeca
atlassian
http-post
google-picker
google-container-registry
database-connection
ag
imagemap
ckfinder
siri
ceylon
corenlp-server
mustache
record
playstation-portable
twos-complement
activexobject
sharding
indy10
ideascript
metawidget
movilizer
install.packages
stylecop
fwrite
lampp
term
yii2-api
dtsearch
custom-font
boxing
shinobi
bootstrap-tags-input
rxtx
cvxpy
pacemaker
jclouds
cfchart
uiactionsheet
lz77
maybe
assertion
microsoft-reporting
.bash-profile
canalyzer
mod-proxy
graphics2d
nutiteq
execve
metatrader5
wcm
live555
git-repo
ecslidingviewcontroller
away3d
mongohq
nevron
flex++
sqlclr
frameworkelementfactory
virtualpathprovider
node-redis
unattended-processing
easyb
rowlex
lobo-cobra
mathematical-notation
flvplayback
change-management
appliance

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