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

ListView with CursorAdapter is not refreshing even if I use swapCursor or changeCursor methods in Android
How do I find out programmatically which mode of Location is turned on?
Using Revmob Ad SDK with Android app on Game Maker
Admob Error: Not enough space to show ad. Needs 320x50 dp, but only has 309x0 dp
How to use BindView Method with payload argument to update only specified part of list item in RecyclerView?
Android App Install Script Mechanism / Method
Two Button Placed front and behind in FrameLayout?
Do not resize children in immersive mode
Add EditText dynamically with (if possible) String id into a Fragment
Running under Android Studio's Run corrupts the stored view
How to check socket status from other classes in android?
How does an Android Studio deal with System.out.print functions when making a final version of an app?
MultiDex error after updating GCM gradle
cannot be cast to android.widget.Filterable in Xamarin
Unable to track overlapping of view objects in Android
Hide Toolbar on scrolling tab content

Categories

HOME
eclipse
cheerio
webdriver
static
jwplayer
rendering
access
regular-language
interpolation
crystal-lang
modal-dialog
teechart
g++
categorical-data
github-enterprise
activecollab
xcodebuild
jsonpath
automatic-ref-counting
favicon
pybossa
symmetricds
standards
google-container-registry
microsoft-ocr
libigl
r-mice
qliksense
failover
vex
google-earth
google-cast
recurring-events
anki
mockjax
left-join
r-grid
sammy.js
nested-lists
html-encode
openalpr
spring-mvc-test
numberpicker
softmax
knime
robomongo
facebook-pixel
launchctl
magic-draw
type-theory
donations
usart
autosar
dotnetnuke-7
resourcemanager
windows-azure-queues
firebase-security
yajsw
cortex-m
cycle2
vhosts
dynamics-nav-2016
dynatree
ess
intel-c++
fuelcms
page.js
sapscript
batik
branch-and-bound
avahi
nutiteq
zxspectrum
qtwebengine
cryptographichashfunction
sonarqube-5.0
strawberry-perl
nsmenu
ignite-ui
matrix-inverse
renderer
koala
multiautocompletetextview
accesscontrolexception
eclipse-kepler
http-patch
tlf
epiceditor
resource-management
qtconcurrent
infobright
stress
convention
jqote
django-paypal
non-clustered-index
tabpanel
pos-for-.net
filesystemobject
business-model
information-management

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