Tobi H
- Forum-Beiträge: 292
21.03.2011, 19:53:06 via Website
21.03.2011 19:53:06 via Website
Hallo, ich habe ein Problem, ich plane folgendes Layout: Am unteren Rand befindest sich ein Horizontales LinearLayout mit 3 Buttons, feste Höhe. Und darüber soll der restliche Platz von einem ListView gefüllt werden.
Das habe ich bisher:
was muss ich ändern?
Das habe ich bisher:
1<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/main_tab_home" android:orientation="vertical">
2 <ListView android:id="@+id/listView1" android:layout_width="wrap_content" android:layout_height="wrap_content"></ListView>
3 <LinearLayout android:layout_height="wrap_content" android:id="@+id/linearLayout1" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_gravity="center_horizontal">
4 <Button android:text="Button" android:id="@+id/button1" android:layout_height="40dip" android:layout_width="100dip"></Button>
5 <Button android:layout_height="40dip" android:text="Button" android:id="@+id/button2" android:layout_width="100dip"></Button>
6 <Button android:layout_height="40dip" android:text="Button" android:id="@+id/button3" android:layout_width="100dip"></Button>
7 </LinearLayout>
8</LinearLayout>
2 <ListView android:id="@+id/listView1" android:layout_width="wrap_content" android:layout_height="wrap_content"></ListView>
3 <LinearLayout android:layout_height="wrap_content" android:id="@+id/linearLayout1" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_gravity="center_horizontal">
4 <Button android:text="Button" android:id="@+id/button1" android:layout_height="40dip" android:layout_width="100dip"></Button>
5 <Button android:layout_height="40dip" android:text="Button" android:id="@+id/button2" android:layout_width="100dip"></Button>
6 <Button android:layout_height="40dip" android:text="Button" android:id="@+id/button3" android:layout_width="100dip"></Button>
7 </LinearLayout>
8</LinearLayout>
was muss ich ändern?
Empfohlener redaktioneller Inhalt
Mit Deiner Zustimmung wird hier ein externer Inhalt geladen.
Mit Klick auf den oben stehenden Button erklärst Du Dich damit einverstanden, dass Dir externe Inhalte angezeigt werden dürfen. Dabei können personenbezogene Daten an Drittanbieter übermittelt werden. Mehr Infos dazu findest Du in unserer Datenschutzerklärung.