title: Trying to get an Android WebView to zoom correctly
body: <p>I need to be able to display an image with zoom and scroll capabilities. Since this seems a bit too tedious with ImageView, I'm doing it with a WebView which loads the local image and then displays it. This is my current code:</p>
  
  <pre><code>    WebView image = (WebView)findViewById(R.id.image);
      image.getSettings().setBuiltInZoomControls(true);
      image.getSettings().setLoadWithOverviewMode(true);
      image.getSettings().setUseWideViewPort(true);
      image.setInitialScale(40);
      image.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.WRAP_CONTENT));
      image.loadUrl("file:///android_asset/image.png");
  </code></pre>
  
  <p>While this loads the image, I can't get it to display only the image. There is always a decent amount of white space below it since setUseWideViewPort(true) makes it go all the way out to scale the width.</p>
  
  <p>Any suggestions on allowing it to only scroll over the image that is loaded? Thanks. I've also tried setDefaultZoom and can't get it to go out far enough.</p>