[code]
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginTop="50dp" // en üstte kalacak boşluk miktarı yani a değeriniz
android:layout_marginBottom="50dp" // en altta kalacak boşluk miktarı yani a değeriniz
android:layout_gravity="center_horizontal"
android:orientation="vertical"
android:weightSum="4" // kaç tane buton olacak ise
>
<Button
android:id="@+id/button1"
android:layout_width="match_parent"
android:layout_height="0dp"
android:text="Button 1"
android:layout_weight="1"
android:layout_marginBottom="10dp"></Button> // bir alttaki butona olacak aralık miktarı
<Button
android:id="@+id/button2"
android:layout_width="match_parent"
android:layout_height="0dp"
android:text="Button 2"
android:layout_weight="1"
android:layout_marginBottom="10dp"></Button>
<Button
android:id="@+id/button3"
android:layout_width="match_parent"
android:layout_height="0dp"
android:text="Button 3"
android:layout_weight="1"
android:layout_marginBottom="10dp"></Button>
<Button
android:id="@+id/button4"
android:layout_width="match_parent"
android:layout_height="0dp"
android:text="Button 4"
android:layout_weight="1"
android:layout_marginBottom="10dp"></Button>
</LinearLayout>
[/code]
Lütfen bunu deneyebilir misiniz ?.