开发者

GIF display issue while using WebView(The first frame is always there)

开发者 https://www.devze.com 2023-02-24 06:28 出处:网络
I have a webview and call开发者_JAVA技巧 mWebView.loadUrl(\"file:///android_asset/test.html\"); the content of test.html is just a IMG SRC=...

I have a webview and call开发者_JAVA技巧 mWebView.loadUrl("file:///android_asset/test.html"); the content of test.html is just a IMG SRC=... the webview can show the animation GIF, but the issue is the first frame of the GIF is always there while the GIF is animating.

What the problem is and how to fix?


Animated gifs are not supported on all android phones. Animated gif support was only introduced in 2.2 and then only for high end phones that had the memory and CPU to handle them.

See: http://code.google.com/p/android/issues/detail?id=3422 for more information about this.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号