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