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

allow usb debugging not showing up
Add entries to ListPreference from xml string array resource
No such property: sonatypeRepo for class: org.gradle.api.publication.maven.internal.deployer.DefaultGroovyMavenDeployer
Can We able to integrate React-Native to existing hybrid app
Style by xml doesn't applies in an actual application
How to Precache 2-3 Images using Fresco in Recycler View
Android kitkat SQLite query bad performance
Unable to retrieve access token for Moodle on Android phone
FirebaseUI 'Cannot Resolve FirebaseListAdapter Constructor'
how to set date in Datepicker dialog from edittext android?
SQLCipher Code not working on Android Application Project for Encryption
Android material navbar between activities
Android contacts aggregation start and complete notification
Get element from the selected item in the listView
Populating a recyclerView within a fragment of a Tabbed application
AWS Device Farm error: No implementation found for long org.opencv.core.Mat.n_Mat()

Categories

HOME
eclipse
search
gridview
adal
design-patterns
fuelux
c99
webdriver
powerpoint
sh
static-site
zip
mapbox
nuget-package
jax-ws
angularfire2
pattern-matching
syntaxnet
plist
spring-social
stellar.js
magnetic-cards
docx
heat
job-scheduling
libigl
joptionpane
xunit
strongname
custom-post-type
jquery-multiselect
pylons
jasmine-node
apktool
android-things
openmdao
alm
recurring-events
python-2.6
kodi
clickjacking
sharding
html-encode
imx6
reason
parse-tree
wurfl
tasm
wmp
uiimage
oim
clarifai
spring-data-couchbase
offline.js
swingworker
sandcastle
donations
cronexpression
ziparchive
google-cloud-console
greatest-n-per-group
hclust
clipboard.js
cassia
nupic
libav
directdraw
decimalformat
fail2ban
bcache
dbaccess
iiop
post-commit-hook
webfinger
ora-00904
dot42
draw2d-js
dsym
twitter-bootstrap-rails
unit-of-work
nebula
cardreader
mysql-error-2013
android-sdk-2.3
sqlclr
paginator
virtualpathprovider
relative
expression-blend-4
matlab-load
exponentiation
drawtobitmap
openfaces
pagemethods
linfu-dynamicproxy
int64
business-model
dsoframer

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile