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
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