2011-05-25 48 views
0

這裏是我的XML:機器人:layout_centerHorizo​​ntal =「真」不是風景定心

<?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的左側。似乎無法弄清楚這一點。

+1

確定Web視圖左對齊,還是Web視圖的網頁內容左對齊? – 2011-06-06 00:17:17

回答

0

好吧,它看起來像HTML是問題,我在HTML中使用align =「center」。

0

爲橫向模式創建一個限定符並給它一次嘗試。

+0

限定符?不確定你的意思...你能舉個例子嗎? – LuxuryMode 2011-05-25 19:55:19

+0

在layout-land中放置佈局?嘗試過......仍然沒有骰子 – LuxuryMode 2011-05-25 20:03:08

相關問題