Steve Zeidner
Steve Zeidner

Reputation: 173

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?

Upvotes: 8

Views: 7976

Answers (1)

taitasciore
taitasciore

Reputation: 88

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.

Upvotes: 5

Related Questions