user12345 user12345 - 1 month ago 19
Android Question

How to load a gif image in android?

As the part of my project, i want to add a gif image in one of the layout of android, i dont have much idea about android also. please tell a easy way to add gif images in the layout

Answer

Try to load .gif images in webview of android. Put your image in asset folder and call the .gif image

WebView view = (WebView)rootView.findViewById(R.id.webView1); 
        view.setWebViewClient(new WebViewClient());
        //loading the .gif image
        view.loadUrl("file:///android_asset/aa.gif");