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

Setting background color to achartengine graph view
How to create camera button that stores images to gallery?
How to combine children and their header in ExpanadbleListView?
ScrollView distrubing ListView inside of LinearLayout
I want to send users of my android application a simple daily reminder, Do I have to use a push notification service or is there an alternative?
Can I write native iPhone, android , windows ,blackberry apps using Python? [duplicate]
How to make other language string in Android?
close and exit from my App in android
Video link of unlisted youtube video
Android opengl.Matrix class issue
How can I lock whitespace characters from the text field in real time?
Nexus 7 Android File Transfer (Socket Programming in Android)
How to export phonegap local database data into csv/excel file in android app?
Detetecting an ips camera present in my wifinet work
Issue while displaying action bar with title in android 4.0 or higher
Android- Chat application - Convert editbox emoticons in string ;) format to save in database

Categories

HOME
shell
azure-stream-analytics
cobalt
hyperlink
checkstyle
pda
character-encoding
hessian
can
cq5
hpc
fosrestbundle
mql5
g++
reactive-programming
line
ycsb
php-5.6
plink
bitnami
intershop
jersey-1.0
git-extensions
sigma.js
topology
symbols
drive
resourcebundle
dynamically-generated
perlbrew
shared
linked-data
wcag
tpm
constexpr
boost-asio
powershell-ise
wacom
android-sugarorm
baidu-map
sim-toolkit
openalpr
git-rewrite-history
jpad
kill
memory-mapping
oim
remedy
semantic-logging
subnet
ngmaterial
bbpress
jtree
pocketsphinx-android
respondcms
hadoop-partitioning
asyncdisplaykit
jbase
xenomai
rewrite
ess
video-player
sapscript
ansi
aspectj-maven-plugin
fits
actionfilterattribute
xmltype
variadic-templates
theos
gnumeric
mutual-authentication
beaker-testing
midlet
cross-database
u2netdk
automationelement
http-daemon
collectionviewsource
ruby-1.8
vs-android
interprocess
lxr
web-application-project
complex-event-processing
online-storage
great-circle

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App