WebView wrap-content

前端 未结 10 2458
我寻月下人不归
我寻月下人不归 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:04

    webview.setInitialScale(number);
    

    where the higher 'number' is, the more zoomed in your page will be. start with lower numbers ( like 10) and adjust to taste

提交回复
热议问题