简体   繁体   English

Android Webview无法显示全部内容(Bootstrap和jQuery)

[英]Android webview not show full content (Bootstrap and jQuery)

On my mobil yandex or chrome browser shows full content of this page https://www.sbm.org.tr/tr/OnlineIslemler/Sayfalar/TrafikPoliceSorgula.aspx but my webview not show full content. 在我的mobil yandex或chrome浏览器上,显示了此页面的全部内容https://www.sbm.org.tr/tr/OnlineIslemler/Sayfalar/TrafikPoliceSorgula.aspx,但是我的网络视图未显示全部内容。

Here is my code 这是我的代码

 public class MainActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        WebView mWebView = (WebView) findViewById(R.id.webview);

        mWebView = (WebView) findViewById(R.id.webview);

        mWebView.getSettings().setJavaScriptEnabled(true);
        mWebView.getSettings().setDomStorageEnabled(true);

         mWebView.setWebChromeClient(new WebChromeClient());
        mWebView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
        mWebView.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NORMAL);


        mWebView.loadUrl("https://www.sbm.org.tr/tr/OnlineIslemler/Sayfalar/TrafikPoliceSorgula.aspx");

      /*  final ProgressDialog progress = ProgressDialog.show(this, "Sayfa", "Yükleniyor....", true);
        progress.show();
        mWebView.setWebViewClient(new WebViewClient() {

            @Override
            public void onPageFinished(WebView view, String url) {
                super.onPageFinished(view, url);
                Toast.makeText(getApplicationContext(), "Sayfa yüklendi", Toast.LENGTH_SHORT).show();
                progress.dismiss(); 
            } `

            public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
                Toast.makeText(getApplicationContext(), "Bir hata oluştu", Toast.LENGTH_SHORT).show();
                progress.dismiss();
            }
        });


*/
    }
}

Webview has overview mode. Webview具有概述模式。 For more information see setLoadWithOverviewMode 有关更多信息,请参见setLoadWithOverviewMode

settings.setUseWideViewPort(true);
settings.setLoadWithOverviewMode(true);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM