Ich habe lineare vertikale Anordnung in Eltern. Dann wird ein horizontales lineares Layout in dem Boden darunter 3 TastenWie 3 Tasten in einer Linie ausrichten, Android?
ich auf der linken Seite der Aktivität 1.e Taste will in der unteren 2. Taste in der Mitte und 3. Taste in der rechten Seite
Hier ist die XML
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ImageView
android:id="@+id/viewImageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:contentDescription="@null"
android:src="@drawable/ic_launcher" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom" >
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button" />
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button" />
<Button
android:id="@+id/button3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="right"
android:layout_gravity="fill_vertical"
android:text="Button" />
</LinearLayout>
Dank es funktioniert für mich – WISHY
@Wishy Wenn meine Antwort Sie geholfen hatte, es pls akzeptieren. Und gehen Sie durch meine Bearbeitung für weitere Erklärungen. – Hariharan