如何解决android:layout_centerHorizontal =“ 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 \”。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。