android:layout_centerHorizo​​ntal =“ true”不在风景中居中

问题描述

|| 这是我的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 \”。     

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...