ボタンの列があり、ボタンの中央のすぐ下にテキストが表示されるアプリを作成しようとしています。これまでのところ、これは私が持っているものです:
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/blue"/>
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/red" android:layout_gravity="center"/>
<Button
android:id="@+id/button3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/green" android:layout_gravity="right"/>
</FrameLayout>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginTop="2.5dip"
android:layout_marginLeft="7.5dip"
android:text="@string/button1"
android:gravity="center" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="2.5dip"
android:text="@string/button2" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginTop="2.5dip"
android:layout_marginRight="5dip"
android:text="@string/button3" />
</RelativeLayout>
ただし、テキストはボタンの中央の下に並んでいません。誰か助けてもらえますか?