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

How do I push my apk to a remote appium server?
What intent action sended when CalendarContract.CalendarAlerts item fired up?
easypermissions.requestPermissions null pointer exception [duplicate]
Update Google Play Services
How to scroll custom list view in Alert Dialog programmatically?
libVLC with Andorid Studio
immediately start MediaPlayer and update MediaPlayerControl
Gui.Label Not the same with android.(unity)
TextView auto create new line when end of the line and edittex not align with textview
Is there a way to implement webview with hardware and software layertype?
Passing data back to previous fragment from current fragment
Android View and Edit a Shared Prefs Values?I have Done with Saving
android want to close selection toolbar programitically [closed]
How to send my Logcat data to my server in android? [duplicate]
Hide soft Keyboard in Android after a custom dialog dismiss
Espresso Test - TextInputLayout not found

Categories

HOME
android
shell
uml
oracle12c
depth
solver
error-handling
pearson-correlation
jax-ws
gluon-mobile
retrofit2
special-characters
p2p
spin
owin
google-chrome-app
plist
startup
project-intu
jxl
comsol
microsoft-dynamics-nav
chargify
pyramid
shortest-path
ag
xcode-ui-testing
flooding
asymptotic-complexity
amazon-quicksight
fractions
volatile
python-2.6
complex-numbers
left-join
dumpbin
spring-security4
login-script
imx6
xajax
sharepoint-workflow
z-notation
sim-card
wmp
parser-generator
microsoft-metro
ssrs-2014
servermanager
magic-draw
custom-font
modelsim
taocp
node-request
angular2-testing
ziparchive
scaffolding
android-wake-lock
lz77
halcon
np-spring
include-guards
batik
liquid-layout
linked-tables
typeconverter
android-broadcast
zxspectrum
phpldapadmin
openbabel
at-job
primitive-types
appserver
jjaql
paste
dsym
synapse
xmltodict
notorm
kendo-dataviz
cnf
epiceditor
onload-event
asplinkbutton
faye
extconf.rb
window-decoration
workflow-services
u2netdk
timthumb
nhprof
photolibrary
cac
commerceserver2007
dot-emacs
echo3
linfu-dynamicproxy
mathematical-typesetting
pnrp

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile