代码:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:id="@+id/txt1" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:text="@string/hello" />
<WebView android:id="@+id/webView"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_below="@id/txt1">
</WebView>
</RelativeLayout>html5页面只设置了body的背景颜色,但是该背景颜色没有全部填充完,最右边大概2毫米那一块还是白色的,搞得页面好丑,希望哪位高人解答一下
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:id="@+id/txt1" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:text="@string/hello" />
<WebView android:id="@+id/webView"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_below="@id/txt1">
</WebView>
</RelativeLayout>html5页面只设置了body的背景颜色,但是该背景颜色没有全部填充完,最右边大概2毫米那一块还是白色的,搞得页面好丑,希望哪位高人解答一下
解决方案 »
- 有没有android里面画一个钟表盘的sample code啊
- 如何在应用层调用stagefright做硬解码
- 获取socket对象怎么办?
- Service中通过intent取得值的问题
- 开始投入Android 的阵营。
- Android AIDL 问题求解
- 熟悉listview 控件的朋友进
- android控件textview里的缩略图如何点击看大图?
- 如何将字符串转换成变量?
- android.hardware.Camera.getNumberOfCameras,Camera已经deprecated过时,用camera2哪个函数替代?
- Failed to parse the output of 'adb version'
- 请教,如何设置,使得模拟器分辨率很大,1280*768以上
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
andorid:id="@+id/TextView01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
<WebView
android:id="@+id/WebView01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
/>
</LinearLayout>