I want to ask something about the gifwebview. How can i resize the gif images while im using the gifwebview. Should I use relative layout params? Because the gif images appeared is very big. I want to adjust the size to fix my application. Please help me.

public void onCreate(Bundle savedInstanceState) {

    InputStream stream = null;
    try {
        stream = getAssets().open("number1.gif");
    } catch (IOException e) {

    GifWebView view = new GifWebView(this, "file:///android_asset/number1.gif");



There is solution that I found but, im not really how to apply it. Here is the code:

<meta name="viewport"
      height = [pixel_value | "device-height"] ,
      width = [pixel_value | "device-width"] ,
      initial-scale = float_value ,
      minimum-scale = float_value ,
      maximum-scale = float_value ,
      user-scalable = ["yes" | "no"]
      " />

I already create a html file, and paste into assets. And i use this code to call the meta file, still it doesn't solve the problem. Anyone could explain what am i doing wrong?

WebSettings settings = webView.getSettings();

There is no such component in Android such as GifWebView.SO you better ask whereever you found this...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.