webView无法在Android Studio中填充父级

时间:2016-04-22 07:51:08

标签: android webview

enter image description here enter image description here
屏幕和webView之间仍然有一些空白。
我怎么解决呢? 我希望webView占据整个屏幕,没有任何空白。
谢谢!

2 个答案:

答案 0 :(得分:1)

从主布局相对布局中删除所有填充。

答案 1 :(得分:0)

您可以通过

调整网页浏览量
    <WebView
    android:id="@+id/webView"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

了解更多信息http://androidcoding.in/2016/03/17/android-tutorial-on-webview-for-beginners/