微調重力似乎只能在水平方向工作。我希望顯示的文字垂直居中,水平居中。這可能嗎? 我使用XML微調正常的風格是這樣的:微調重力
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="12sp"
android:paddingBottom="5dip"
android:id="@+id/spinnerTarget"
android:gravity="top|center_horizontal"
android:textColor="#ffffff"
/>