這裏是我的XML:機器人:layout_centerHorizontal =「真」不是風景定心
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<WebView
android:id="@+id/WebView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true">
</WebView>
</RelativeLayout>
的WebView
在畫像中心的,但是當我切換到橫向似乎對準RelativeLayout
的左側。似乎無法弄清楚這一點。
確定Web視圖左對齊,還是Web視圖的網頁內容左對齊? – 2011-06-06 00:17:17