Hallo!
Ich habe eine ListView in einer ScrollView.
Problem: Die Liste kollabiert. Soll heißen, es wird nur der erste Eintrag angezeigt. Wenn die Liste außerhalb der ScrollView ist, werden alle Einträge angezeigt.
Hat da wer ne Idee was man dagegen machen kann?
Vielen Dank schonmal!
Ich habe eine ListView in einer ScrollView.
Problem: Die Liste kollabiert. Soll heißen, es wird nur der erste Eintrag angezeigt. Wenn die Liste außerhalb der ScrollView ist, werden alle Einträge angezeigt.
Hat da wer ne Idee was man dagegen machen kann?
Vielen Dank schonmal!
XML:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@color/intro_stepCreate">
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<EditText
android:id="@+id/intro_stepCreate_edt_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="30dp"
android:hint="@string/intro_create_password"
android:inputType="textPassword"
android:maxLines="1"
android:textColor="@color/intro_text"
android:textColorHint="@color/intro_text"
android:textSize="20dp"
android:background="@drawable/border"/>
<EditText
android:id="@+id/intro_stepCreate_edt_password_confirm"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="30dp"
android:hint="@string/intro_create_confirm"
android:inputType="textPassword"
android:maxLines="1"
android:textColor="@color/intro_text"
android:textColorHint="@color/intro_text"
android:textSize="20dp"
android:background="@drawable/border"
android:layout_below="@id/intro_stepCreate_edt_password"
android:layout_marginTop="20dp"/>
<ListView
android:id="@+id/intro_step_create_passwordsafety_listview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="20dp"
android:layout_below="@id/intro_stepCreate_edt_password_confirm"
android:paddingTop="20dp"/>
</RelativeLayout>
</ScrollView>
<RelativeLayout
android:id="@+id/intro_stepCreate_buttonbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_alignParentBottom="true"
>
<Button
android:id="@+id/intro_stepCreate_btn_next"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/intro_create_btn_finish"
android:textColor="@color/intro_text"
android:background="@color/intro_stepCreate"
android:textSize="25dp"
android:padding="20dp"
android:layout_alignParentRight="true"
/>
<Button
android:id="@+id/intro_stepCreate_btn_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/intro_btn_back"
android:textColor="@color/intro_text"
android:background="@color/intro_stepCreate"
android:textSize="25dp"
android:padding="20dp"
android:layout_alignParentLeft="true"/>
</RelativeLayout>
</RelativeLayout>