プリファレンス ページのグラビティを RIGHT に変更するにはどうすればよいですか? 解決策はありますか?
1 に答える
0
すべての設定にはLayout Attributeがあります。これを使用して、すべてのペルシア語テキストをフォーマットできます。ただし、指定するレイアウトには、「@+android:id/title」の ID を持つ TextView が必要です。
これは、画像が追加され、テキストが右寄せされた簡単な例です。
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="70dip"
>
<ImageView
android:id="@+id/perf_image"
android:src="@drawable/pin_red"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true" />
<TextView
android:id="@+android:id/title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="23dip"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/perf_image"
android:text="stuff"
style="@android:style/TextAppearance.Widget.TextView.PopupMenu"
android:gravity="right"
/>
</RelativeLayout>
于 2011-11-08T05:39:23.607 に答える