私は Webview を使用して、ズームをサポートするローカル画像を見ています。現在のコードのように幅ではなく、画像の高さに合わせて WebView をズームする方法はありますか? ここに私が持っているものがあります:
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");