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
Camera2 preview streched when cropping with SCALER_CROP_REGION
Optimize website for mobile landscape view
what could be the reason even if check isFinishing() it still gets IllegalStateException: Can not perform this action after onSaveInstanceState
Set border TextView not in in Android 4.2.2
Glide, Picasso or AsyncTask doesn't work in my RecyclerView
Layout for aptitude learning app. Which ViewGroup to use when the questions and the option occures?
API Level for Google Maps Interactive Polylines?
Can't pass Object via intent in Android N
Firebase onChildAdded() event not triggered sometimes/ after idle time
Android custom checkbox for set custom font
I can't run my android application on Marshmallow but it works on lower version [duplicate]
Send a notification to another user within the same sqlite database
Error: Duplicate resources in Android Studio
Android. Do I need to dispose Maybe inside onBindViewHolder?
getting 403 disallowed user agent in Auth0 Lock for Android