I have three buttons
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <Button android:layout_height="wrap_content" android:layout_width="match_parent" android:text="Красный" android:gravity="center" android:layout_alignParentTop="true"/> <Button android:layout_height="wrap_content" android:layout_width="match_parent" android:text="Зелёный" android:gravity="center"/> <Button android:layout_height="wrap_content" android:layout_width="match_parent" android:text="Синий" android:gravity="center" android:layout_alignParentBottom="true"/> </LinearLayout> How to make, what the first button would be from above, the second - in the center, and the third from below?