title: How to set android webview zoom to specific height
body: <p>I am using a Webview to look at a local image with zoom support and all that. Is there any way that I can make the WebView zoom to only fit the height of the image, instead of the width like it does with my current code? Here is what I have:</p>
  
  <pre><code>WebView image = (WebView)findViewById(R.id.map);
      image.getSettings().setBuiltInZoomControls(true);
      image.getSettings().setLoadWithOverviewMode(true);
      image.getSettings().setUseWideViewPort(true);
      image.setLayoutParams(new     LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.WRAP_CONTENT));
      image.loadUrl("file:///android_asset/image.png");
  </code></pre>