A
A
Artem2013-04-28 12:02:58
Android
Artem, 2013-04-28 12:02:58

Displaying animated GIFs in ListView?

There is an application, in it by means of ListView the list of messages is displayed. Each message can contain up to several emoticons. Smilies are preloaded from the server in the form of GIFs, some of them are animated. The display is implemented like this:

Html.ImageGetter imageGetter=new Html.ImageGetter imageGetter() {
    public Drawable getDrawable(String source) {
        return getDrawableFromSd(String source);
    }
}
mtTextView.setText(Html.fromHtml(text,imageGetter,null));

where mtTextView is a TextView with a message text, and getDrawableFromSd() is a method for reading an already loaded image from a memory card.
Q: How can I make animated GIFs play? They are currently displayed static.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question