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

make views inside Layout match custom shape of layout
Text input in SearchView doesn't show
Changing the orientation switches the layout used when designing
How to debug an Android app that “unfortunately stops”?
Can google TangoUX work together with tango C API?
Android : Content Provider adds two rows at a time
Add an “exclude module” rule to an entry in plugin.xml for Cordova
Hide status bar until exit
Changing from layouts .xml
Attempt to invoke virtual method Activity_Animation002_Layout.resume() on a null object reference
Which button was clicked in a confirmation dialog
Build Fails on Each Run
Placing TabLayout in the middle of screen
Extra low performance in landscape orientation
ToolBar overlaps the content(LinearLayout) which contains fragments
CardView resize animation

Categories

HOME
batch-file
azure-stream-analytics
rsa
alarm
access
rds
parameters
regular-language
title
barcode
owin
android-securityexception
speech-synthesis
nancy
enterprise-architect
azure-powershell
azure-iot-hub
intershop
dimensional-modeling
red5
sencha-touch
ember-cli
imageresizer
object-storage
epsilon
resourcebundle
onload
mat
tizen-tv
carrierwave
google-earth
finagle
scrollview
eviews
event-flow
jmockit
biztalk-rule-engine
jwplayer6
processwire
batching
openerp-7
watchman
imagenet
reactivekit
health-monitoring
subclipse
smoothstate.js
http-request
signal-strength
mesosphere
openrasta
payara-micro
pair-programming
azure-cli
bbpress
cpu-cache
template-toolkit
gameplay-kit
pocketsphinx-android
taocp
omxplayer
pacemaker
mongodb-php
x-tag
gogs
eigenvector
refinerycms
clipboard.js
android-wake-lock
kango-framework
angular-ui-typeahead
tracker-enabled-dbcontext
bizagi
jnlua
relativelayout
mod-proxy
amiga
linked-tables
node-serialport
administration
strawberry-perl
gii
with-statement
dct
git-repo
jeromq
device-width
curb
tree-balancing
boost-msm
hibernateexception
landscape-portrait
tmx
pos-for-.net
complex-event-processing
fault-tolerance
xslcompiledtransform

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