我有以下 xml 文件。
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/top" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:minHeight="300px">
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webview" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:background="#ff0000"
android:minHeight="290px">
</WebView>
</FrameLayout>
我正在加载示例 HTML 文件,页面高度为 150px。加载页面后,webview 的背景仅填充 150px 的红色。但我将 android:minHeight 属性设置为 290px。
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)