title: Fit image in webview
body: <p>I am planning to display images from SD card in a webview in order to take advantage of he built in zoom capabilities of webview. However, I am facing an issue with displaying images that are bigger than screen size (e.g. 1800x1200) to fit the screen initially, like in an ImageView. I want the image to be displayed in full at first and provide zoom control to the users.
  I have tried using WRAP_CONTENT for webview's width and height, but that does not work. 
  Any ideas?
  Following is a code snippet I am using:</p>
  
  <pre><code>    String path = getRealPathFromURI(mUriList.get(0)); // this gets the file path
      webView = (WebView) findViewById(R.id.WebView01);
   WebSettings settings= webView.getSettings();
   settings.setBuiltInZoomControls(true);
   settings.setSupportZoom(true);     
   webView.loadUrl("file://" + path);
  </code></pre>