Я новичок в разработке Android, и мне было просто интересно, как я могу создать три кнопки с равномерным распределением в нижней части экрана. Мне также было интересно, какой стиль я мог бы использовать, чтобы эти кнопки выглядели аккуратно и аккуратно.Как создать три кнопки с равномерным интервалом
Код, который я написал до сих пор.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="0dip"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/Fragment1"
android:id="@+id/worldTextView" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/Button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/Button1"
/>
<Button
android:id="@+id/Button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/Button2"
/>
<Button
android:id="@+id/Button3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/Button3"
/>
</LinearLayout>
Установить высоту как 'match_parent'? Зачем вам нужны три кнопки, охватывающие весь экран? – Vikram