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

Can I use scpi commands to read the measurement device's results via RS-232 connection?
Getting a string from EditText
Android Log.w(), Log.d(), Log.i() not printing [duplicate]
Attribute “name” was already specified for element “activity”
Android design fragment usage combined with triggered actions
https request error in android version < 6.0 after server migration
How to live stream video from camera using texture view and not surfaceview?
Event handler for the end of results in Bing speech client library in android in LongDictation mode
Not taking value from json array in android?
Bamboo integration for Android application
On swipe my image move left or right
How to set NavigationView's headerView with Anko DSL?
Android 6.0+ Unable to resume activity , did not call finish() prior to onResume() completing
Binary XML file line #13: Binary XML file line #13: Error inflating class fragment
Android:Device Pin\Swipe Screen not shown when notification action button pending intent is set to start service
How to invoke android app from Xamarin Android app

Categories

HOME
service-worker
delphi-7
gdb
redux-form
socket.io
solver
dojo
regular-language
google-admin-sdk
boto3
flume
computer-science
project
mql5
reactive-programming
distribution
plist
why3
code-generation
3nf
scrolltop
gruntfile
charles
user-experience
pagespeed
r-mice
onload
gpio
amazon-quicksight
jaws
angularjs-material
installshield-le
hunspell
fossil
nested-lists
python-import
pdw-file-browser
lubridate
xajax
python-pptx
swagger-php
bc
railstutorial.org
loading
kill
odoo-website
datacachefactory
portforwarding
logback-groovy
drupal-theming
strftime
snapchat
plan-9
term
serde
chai-as-promised
dtsearch
avx
arules
css-transforms
lsyncd
mouseleave
flyout
jtree
structuremap4
visual-studio-2008-sp1
stripe-connect
pure-css
parfor
cfchart
database-relations
jbase
spring-retry
dynatree
finalbuilder
skspritenode
cakephp-2.7
qtwebengine
exceldatareader
entry-point
cuba
personalization
rcaller
renderer
bin
video-codecs
insert-id
box2d-iphone
promotion-code
cgbitmapcontextcreate
cdonts
binomial-heap
aspmenu
openfaces
duplex
spread
dojo-dnd
dsoframer
cardspace
great-circle

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