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

后端 未结 7 1811
抹茶落季
抹茶落季 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:51
    webView = (WebView) findViewById(R.id.noticiasWebView);
    webView.setInitialScale(1);
    webView.getSettings().setJavaScriptEnabled(true);
    webView.getSettings().setLoadWithOverviewMode(true);
    webView.getSettings().setUseWideViewPort(true);
    webView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);
    webView.setScrollbarFadingEnabled(false);
    webView.loadUrl("http://www.resource.com.br/");
    
    0 讨论(0)
提交回复
热议问题