I'm using Android-Query to load images into a webview, so I can use the zoom functionality that comes with that particular view.
Now, the images I'm loading are taller than they are wide, so, in my layout, are being cropped (can't see the bottom of the image in question).
Is there anyway I can alter my code to force the loaded image to scale to fit the view? The documentation says...
In addition to ImageView, a WebView can be used to display an image along with Android build in zoom support for WebView. Image will be centered and fill the width or height of the webview depending on it's orientation.
So I think I might be out of luck? Here's the relevant line of code that loads the image...
aq.id(R.id.webview).progress(R.id.progressbar).webImage(imageUrl);
And here's the layouyt..
<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>