У меня вопрос макета.
Скажем, у меня есть RelativeLayout, появляющийся внизу экрана. В этом случае я хочу добавить 2 текстовых изображения, в центре, один в верхнем центре и один в нижнем центре.
|--------------------------|
| Text1 |
| Text2 |
|--------------------------|
Что-то вроде этого: -)
Как это работает для вас:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center_horizontal">
<TextView android:id="@+id/text1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Text 1"/>
<TextView android:id="@+id/text2"
android:layout_below="@id/text1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Text 2"/>
</RelativeLayout>