Responsive website show on Web view out of mobile width(Not Responsive) other way in Chrome Looks Good

后端 未结 7 1814
抹茶落季
抹茶落季 2021-02-07 10:01

I am using webview to load the responsive website but it shows the width outside to the mobile size.

I open the link in a mobile Chrome browser and it looks

7条回答
  •  无人共我
    2021-02-07 10:31

    Try This:

    WebView browser = (WebView) findViewById(R.id.webview);
    browser.getSettings().setLoadWithOverviewMode(true);
    browser.getSettings().setUseWideViewPort(true);
    

提交回复
热议问题