Answer the question
In order to leave comments, you need to log in
android.webview. Automatically reduce photo?
There is an Activity, on it lies a WebView designed to display photos.
I display a picture:
wvCatalog.loadUrl("file:/"+path_picture+"error.jpg");
but if it is larger in resolution than the screen resolution, the picture does not automatically decrease, unlike ImageView. What property should be set?
Answer the question
In order to leave comments, you need to log in
Why are you displaying it in a WebView? If you only need to display an image in it, use ScrollView -> HorizontalScrollView -> ImageView. That will be more correct. But if you still need to use WebView for some reason, then keep in mind that WebView is used to display web pages. Use html code.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question