问题描述
||
这是我的XML:
<?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
以肖像为中心,但是当我切换到横向时,seems2ѭ的左侧似乎对齐。似乎无法弄清楚。
解决方法
为横向模式创建一个限定符,然后再尝试一次。
,好吧,看来HTML就是问题所在,我在HTML中使用了align = \“ center \”。