0
0
0xE02013-07-09 16:54:25
Android
0xE0, 2013-07-09 16:54:25

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

2 answer(s)
A
AgentSIB, 2013-07-09
@AgentSIB

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 question

Ask a Question

731 491 924 answers to any question