Guten Abend,
ich arbeite mich derzeit etwas in Xamarin ein. Dabei habe ich leider beim designen der GUI einige Probleme. Ich habe ein Layout das sich automatisch an die Größe des Displays anpassen soll. In diesem Layout befindet sich eine ListView und darunter befindet sich ein Button wenn ich nun die ListView auf
Das Layout sieht so aus:
Spoiler anzeigen
Hat jemand einen Tipp wie ich das Problem am besten angehen soll?
*EDIT*
Ich hab das Problem nun lösen können. An stelle eines Linearen Layouts habe ich nun ein Relatives verwendet.
ich arbeite mich derzeit etwas in Xamarin ein. Dabei habe ich leider beim designen der GUI einige Probleme. Ich habe ein Layout das sich automatisch an die Größe des Displays anpassen soll. In diesem Layout befindet sich eine ListView und darunter befindet sich ein Button wenn ich nun die ListView auf
match_parent
stelle überdeckt die ListView meinen Button. Das Layout sieht so aus:
XML-Quellcode
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:minWidth="25px"
- android:minHeight="25px"
- android:gravity="top">
- <TextView
- android:text="New_Order"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:id="@+id/newOrder_headerText"
- android:textSize="30dp" />
- <ListView
- android:minWidth="25px"
- android:minHeight="25px"
- android:layout_width="match_parent"
- android:id="@+id/newOrder_listView"
- android:background="@android:drawable/alert_light_frame"
- android:choiceMode="singleChoice"
- android:divider="@android:color/black"
- android:dividerHeight="2dp"
- android:layout_height="389.0dp" />
- <LinearLayout
- android:orientation="horizontal"
- android:minWidth="25px"
- android:minHeight="25px"
- android:layout_width="match_parent"
- android:id="@+id/newOrder_linearLayout_bottom"
- android:layout_height="wrap_content"
- android:gravity="bottom"
- android:layout_marginBottom="50.0dp"
- android:layout_gravity="bottom">
- <Button
- android:text="Bestätigen"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/newOrder_button_newOrderAccept" />
- <TextView
- android:text="0 € "
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:id="@+id/newOrder_textView_newOrderPrice"
- android:textSize="20dp"
- android:gravity="right"
- android:layout_gravity="right"
- android:textColor="@android:color/background_light" />
- </LinearLayout>
- </LinearLayout>
Hat jemand einen Tipp wie ich das Problem am besten angehen soll?
*EDIT*
Ich hab das Problem nun lösen können. An stelle eines Linearen Layouts habe ich nun ein Relatives verwendet.
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „Fakiz“ ()