You can display Gif in android without using any third-party libraries. Here is how I did it.
Make a web presentation.
<WebView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/imageWebView" />
Most examples show how to open a file from a resource folder, but here I will show you how to open it from an SD card / memory.
WebView webView = (WebView) findViewById(R.id.imageWebView); String data = "<body> <img src = \""+ filePath+"\"/></body>"; // 'filePath' is the path of your .GIF file on SD card. webView.loadDataWithBaseURL("file:///android_asset/",data,"text/html","UTF-8",null);
Prakash
source share