Хорошо. Прежде всего, я искал весь интернет, но никто не имеет подобной проблемы. Итак, все, что я хочу, это иметь 3 textViews, нижний выровненный с экраном и с одинаковой шириной. Вот изображение, представляющее то, что я хочу:
И вот мой код:
<RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true">
<TextView
android:text="@string/help_1"
android:layout_weight="0.33"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/mynicebg1"
android:layout_gravity="bottom"/>
<TextView
android:text="@string/help_2"
android:layout_weight="0.33"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/mynicebg2"
android:layout_gravity="bottom"/>
<TextView
android:text="@string/help_3"
android:layout_weight="0.33"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/mynicebg3"
android:layout_gravity="bottom"/>
</LinearLayout>
</RelativeLayout>
Ну, это работает, когда 3 textViews имеют одинаковую высоту, но когда их размер отличается, я получаю следующий результат:
Другим странным поведением является то, что когда я устанавливаю layout_gravity самого большого текста в "center-vertical", я получаю следующий результат:
Итак, я сошел с ума и попробовал другие комбинации с вертикальной вертикалью, но ничего не сработало, как я хотел изначально:
Итак, какие-нибудь советы о том, как это решить?