0
如何解决这个问题我使用Webview并设置了一个backgroundResource,怎样才能将文本居中放在webView中?WebView中的中心对齐文本?
这是我的XML代码
<WebView
android:id="@+id/webView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="10sp"
android:gravity="center"
android:layout_centerHorizontal="true"
android:layout_marginTop="81dp" />
能见度:尽量使用'gravity' –
我已经做安卓重力=“中心”,但nothings发生:( – chicharp
你从哪里得到这个文本? –