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
Setting background color to achartengine graph view
How to create camera button that stores images to gallery?
How to combine children and their header in ExpanadbleListView?
ScrollView distrubing ListView inside of LinearLayout
I want to send users of my android application a simple daily reminder, Do I have to use a push notification service or is there an alternative?
Can I write native iPhone, android , windows ,blackberry apps using Python? [duplicate]
How to make other language string in Android?
close and exit from my App in android
Video link of unlisted youtube video
Android opengl.Matrix class issue
How can I lock whitespace characters from the text field in real time?
Nexus 7 Android File Transfer (Socket Programming in Android)
How to export phonegap local database data into csv/excel file in android app?
Detetecting an ips camera present in my wifinet work
Issue while displaying action bar with title in android 4.0 or higher
Android- Chat application - Convert editbox emoticons in string ;) format to save in database