GIF Image display using WebView

msumaithri picture msumaithri · Jan 28, 2011 · Viewed 31.6k times · Source

Can someone please provide a code to display GIF images in a webview ( I'm already able to display the same using frame animation of png images) Now I want a way to display the GIF images rather than loading the frames or drawing the images again and again!

Answer

Avinash Jain picture Avinash Jain · Jan 9, 2014

Try this..

WebView wv = (WebView) findViewById(R.id.webView1);
wv.loadUrl("file:///android_asset/anim5.gif");

Simply call your GIF image from assets like this..