How to show web view as OverviewMode (fully scaled down) in android? as?

I want to upload my webview as an overview mode (fully reduced). that is, the web page has completely disappeared in its original state.

i is encoded as follows:

webview_obj.getSettings().setLoadWithOverviewMode(true);

does not work. what error and how to fix it?

+3
source share
1 answer

I was just trying to figure it out myself. It seems that setting setUseWideViewPort in addition to setLoadWithOverviewMode fixes it.

webview_obj.getSettings().setUseWideViewPort(true);

This other question is about the same. How to set the initial scale / width for a website

+8
source

Source: https://habr.com/ru/post/1738986/


All Articles