Wie die Lücke zwischen zwei buttons im LinearLayout

In meiner app zwei Tasten angeordnet, die vertikal in LinearLayout. ich möchte eine Lücke zwischen zwei Knöpfen. Bitte geben Sie eine Lösung...

mein layout wie folgt

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:orientation="vertical"
  android:padding="10dp"
  >
<Button
    android:id="@+id/btnAction1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/cool_button"
    android:text = "HiText1"
/>

<Button
    android:id="@+id/btnAction2"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/cool_button"
    android:text="HiText2"
    android:layout_below="@id/btnAction1"
/>        

</LinearLayout> 

Bild

Wie die Lücke zwischen zwei buttons im LinearLayout

vielen Dank im Voraus

  • Sie können android:layout_marginTop="5dp" oder android:layout_marginBottom="5dp"
  • vielen Dank KMI für die Hilfe
InformationsquelleAutor Riskhan | 2012-12-19
Schreibe einen Kommentar