Ich möchte einen Dialog erstellen, um einen Videotitel und Tags anzuzeigen. Unterhalb des Textes möchte ich die Schaltflächen Anzeigen, Bearbeiten und Löschen hinzufügen und diese Elemente auf die gleiche Größe bringen. Weiß jemand, wie man eine XML-Layoutdatei ändert, um Elemente in LinearView gleich groß zu machen?
Die aktuelle Layoutdatei sieht folgendermaßen aus:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/txtTitle" android:text="[Title]" >
</TextView>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/txtTags"
android:text="[Tags]" >
</TextView>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/btnPlay"
android:text="View">
</Button>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/btnEdit"
android:text="Edit">
</Button>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/btnDelete"
android:text="Delete">
</Button>
</LinearLayout>
</LinearLayout>
Ich würde mich freuen, wenn jemand die Lösung durch Ändern des eingefügten Dateiinhalts zeigen könnte.
Vielen Dank!
