代码:
<?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毫米那一块还是白色的,搞得页面好丑,希望哪位高人解答一下

解决方案 »

  1.   

    手机页面  你可以考虑使用 jquerymobile啊,至于你说的 有空白 xml里面边框属性设置下不可以吗?或者设置靠右。。
      

  2.   

    我已经设置了宽度fill_parent,xml中WebView控件时没有边框属性的
      

  3.   

    打开  ADT AND AVD MANAGER  ,选在个2.2(2以上)的模拟器。把SKIN,默认设置为HVAG然后,用这个试试.xml<?xml version="1.0" encoding="utf-8"?>
    <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>