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

Steve Zeidner picture Steve Zeidner · Mar 23, 2015 · Viewed 7.6k times · Source

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?

Answer

taitasciore picture taitasciore · Apr 29, 2015

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.