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
Can I use scpi commands to read the measurement device's results via RS-232 connection?
Getting a string from EditText
Android Log.w(), Log.d(), Log.i() not printing [duplicate]
Attribute “name” was already specified for element “activity”
Android design fragment usage combined with triggered actions
https request error in android version < 6.0 after server migration
How to live stream video from camera using texture view and not surfaceview?
Event handler for the end of results in Bing speech client library in android in LongDictation mode
Not taking value from json array in android?
Bamboo integration for Android application
On swipe my image move left or right
How to set NavigationView's headerView with Anko DSL?
Android 6.0+ Unable to resume activity , did not call finish() prior to onResume() completing
Binary XML file line #13: Binary XML file line #13: Error inflating class fragment
Android:Device Pin\Swipe Screen not shown when notification action button pending intent is set to start service
How to invoke android app from Xamarin Android app