WebView wrap-content

前端 未结 10 2461
我寻月下人不归
我寻月下人不归 2020-12-13 02:26

Is it possible to load a URL in a WebView and resize it to fit the screen? I mean I want to make the WebPage small so that the user doesn\'t need to scroll. Is this possible

10条回答
  •  长情又很酷
    2020-12-13 03:05

    You can also try setting an layout algorithm for the same.It worked for me

    webview.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
    

提交回复
热议问题