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

Add Google Play Services to Eclipse project
Android - Crittografy Cipher decrypt doesn't work
how to highlight ListView multiple views on click?
How to create file in Sdcard using phonegap
When Android kills an app, can a function be stopped halfway?
Get two merged bitmap from canvas
Downloading Image using an Async Task and DIsplaying it in Gallery
Images appearing distorted depsite putting them in the ldpi folder, they apper perfect in screenshots
Is an ExpandableListView appropriate when my list items are very different?
Returning values form OnSensorChanged() method
How do I set the width of a child views to be divided amongst eachother?
Spinner cannot be used in conditional statements in Android
setWidth() Button Android
Android - Canvas drawBitmap inside specific area
Need to shut off the sound MediaRecorder plays when the state changes
Add xmpp_login extended permission to facebook sdk

Categories

HOME
notepad++
go
xml
azure-stream-analytics
hyperlink
alexa-skills-kit
youtube-data-api-v3
requirements
rendering
gembox-spreadsheet
regular-language
google-admin-sdk
little-proxy
watson-conversation
datastage
naivebayes
spring-social
selenium-ide
symfony-2.8
powershell-v5.0
aws-sdk
google-container-registry
identity-management
asp.net-core-webapi
windows-xp
poedit
kendo-mobile
imagemap
fable-f#
licensing
tpm
cppreference
eviews
database-comparison
git-squash
clickjacking
modalviewcontroller
lubridate
xajax
searchkit
openalpr
tex
projects-and-solutions
spring-mvc-test
kill
vmware-fusion
attributeerror
movilizer
smoothstate.js
knime
stylecop
dapper-simplecrud
datamaps
openblas
podscms
context-switch
video-conferencing
opengl-4
chromium-os
burrows-wheeler-transform
beamer
model-associations
cassia
lua-telegram-bot
bizagi
np-spring
jparsec
directdraw
rate-limiting
xvim
rubaxa-sortable
baasbox
typeconverter
cakephp-2.7
bcache
at-job
webmatrix-3
mruby
sql-scripts
teaspoon
linkedin-jsapi
trdion2011
xml-namespaces
draw2d-js
gwt-openlayers
model-driven-development
route-provider
facebook-timeline
cardreader
device-width
jquery-blockui
zope.interface
thttpd
oracle-enterprise-linux
cross-database
jquery-address
procedures
jquery-tools
htdocs
u2netdk
diagrams
ruby-1.8
vs-android
globals
lalr
web-application-project
int64
contentpresenter
mathematical-typesetting

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