How to make animated GIFs work from Android WebView

后端 未结 5 2453
长情又很酷
长情又很酷 2021-02-19 20:24

Animated GIF images rendered by Android\'s WebView do not seem to animate. Has anyone figured out how to make them work? I\'m testing on an N1 with 2.1-u1. None of the web sett

5条回答
  •  春和景丽
    2021-02-19 21:12

    Use WebP format for Android.

    https://developers.google.com/speed/webp/

    There are several online utilities available, to convert animated GIFs to WebP format (http://www.zamzar.com/convert/gif-to-webp/ is one example).

    Note that WebP is not supported on most of the other browsers so you may need to apply some logic to select GIF or WebP based on platform.

提交回复
热议问题