Android WebView not loading URL

前端 未结 10 932
鱼传尺愫
鱼传尺愫 2020-12-05 02:15

I want to load the URL in WebView

I have used the following Code:

webView = (WebView) findViewById(R.id.webview1);
webView.setWebViewCli         


        
10条回答
  •  情话喂你
    2020-12-05 02:29

    The simplest solution is to go to your XML layout containing your webview. Change your android:layout_width and android:layout_height from "wrap_content" to "match_parent".

      
    

提交回复
热议问题