Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Picasso load image into GifImageView (android-gif-drawable library)

I am using the android-gif-drawable library to display an animated gif in an Android view. This library can load a file from an input stream, byte array, byte buffer, or from a locally stored file. I am looking for a way to use Picasso to download the gif and pass it to the library to load into the GifImageView. Unfortunately, once the downloaded image is converted to a Bitmap, it just becomes a single frame. I'm thinking a custom request handler might be able to hand off an input stream for the GifImageView to load, but I cannot seem to figure out the syntax to do this. Does anyone have pointers or thoughts on doing this?

like image 839
Steve Zeidner Avatar asked Mar 23 '15 13:03

Steve Zeidner


People also ask

Can Picasso load GIF?

Picasso does not support GIF animation on a simple image view. Glide loads images faster than Picasso.

How do you load an image into an imageView from an image URL using Picasso?

Image loading using Picasso is very easy, you can do it like this way Picasso. get(). load("http://i.imgur.com/DvpvklR.png").into(imageView); and in their website you can get every details. In your case you can parse every image URL and use RecyclerView to show them along with Picasso.


1 Answers

If you haven't figured it out yet, you can use the library Ion. I was facing the same problem a few days ago, and it worked for me.

like image 102
taitasciore Avatar answered Oct 23 '22 13:10

taitasciore