Android-Queryを使用して画像を webview に読み込むので、その特定のビューに付属するズーム機能を使用できます。
現在、読み込んでいる画像は幅よりも高くなっているため、私のレイアウトではトリミングされています (問題の画像の下部が見えません)。
読み込まれた画像をビューに合わせて拡大縮小するようにコードを変更できる方法はありますか? ドキュメントによると...
ImageView に加えて、WebView を使用して、WebView のズーム サポートで Android ビルドと共に画像を表示できます。画像は中央に配置され、向きに応じて webview の幅または高さを埋めます。
だから私は運が悪いかもしれないと思いますか?画像をロードする関連するコード行は次のとおりです...
aq.id(R.id.webview).progress(R.id.progressbar).webImage(imageUrl);
そして、ここにレイアウトがあります..
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<WebView
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
<ProgressBar
android:id="@+id/progressbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true" />
</RelativeLayout>