title: loading a view to webview..
body: <p>i am trying to load a gif image from assets folder.. i am following the below link</p>
  
  <p><a href="http://droid-blog.net/2011/10/14/tutorial-how-to-use-animated-gifs-in-android-part-3/" rel="nofollow">http://droid-blog.net/2011/10/14/tutorial-how-to-use-animated-gifs-in-android-part-3/</a></p>
  
  <p>now the problem here is my gif is a large so only a portion of the image is being displayed in the view.. thus i want to </p>
  
  <pre><code>i want to display the gif in an xml file that has a webview as a child..
  </code></pre>
  
  <p>to attend the above aim, i did the following</p>
  
  <pre><code> setContentView(R.layout.activity_splash_about);
   WebView webView = (WebView) findViewById(R.id.webView1);
   GifWebView view = new GifWebView(this, "file:///android_asset/ab.gif");     
   webView.addView(view); 
  </code></pre>
  
  <p>but am getting the following error</p>
  
  <pre><code> Unable to open asset URL: file:///android_asset/ab.gif
   I/chromium(1139): [INFO:CONSOLE(12)] "Not allowed to load local resource:
                   file:///android_asset/webkit/android-weberror.png", 
                    source: data:text/html,chromewebdata (12)
  </code></pre>
  
  <p>so how do i display the view in webview in an xml??</p>