tags:

views:

217

answers:

1

Hello, In my app, I display pictures thanks to a webView. So for each image I create small HTML code that I load with the webView. So my html code consist basically in a img tag (with the path to my picture).

My pictures have different sizes, that's why I'd like to set my webView zoom to fit the pictures width to the webView width. So the user don't have do zoom in or out to be able to see the entire picture.

Is there a way to achieve it ?

Thanks.

A: 

Is there a reason you are using a WebView to accomplish this? With an ImageView you can set the scaleType to fit the image to the size of the ImageView.

Mayra
Well, because of the built-in zoom and horizontal/vertical scroll.
Trox