Boa noite, tenho o seguinte código xml abaixo, porém está dando essa msg de erro:
The vertically scrolling ScrollView should not contain another vertically scrolling widget (ListView)
Estou tentando fazer 3 listView aparecer um abaixo da outra, porém preciso de um ScrollView da página inteira mas da forma que está abaixo ele deixa as ListViews com apenas 1 linha aparecendo
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_height="wrap_content"
android:background="@color/gray81"
android:orientation="vertical"
android:layout_width="fill_parent">
<TextView
android:gravity="center"
android:layout_margin="5sp"
android:textColor="@color/azul"
android:textStyle="bold"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/txt_rendimentos"/>
<ListView
android:id="@+id/id_RendimentosLista"
android:focusableInTouchMode="false"
android:layout_width="fill_parent"
android:layout_marginLeft="10sp"
android:layout_marginRight="10sp"
android:layout_height="100sp"
android:divider="#ECECEC"
android:scrollbars="none"
android:background="@drawable/border_list"
android:dividerHeight="1sp"/>
<TextView
android:gravity="center"
android:layout_margin="5sp"
android:textColor="@color/vermelho"
android:textStyle="bold"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/txt_descontos"/>
<ListView
android:id="@+id/id_DescontosLista"
android:focusableInTouchMode="false"
android:layout_marginLeft="10sp"
android:layout_marginRight="10sp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:divider="#ECECEC"
android:scrollbars="none"
android:background="@drawable/border_list"
android:dividerHeight="1sp"/>
<TextView
android:textStyle="bold"
android:gravity="center"
android:layout_margin="5sp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/txt_total"/>
<ListView
android:id="@+id/id_TotalLista"
android:focusableInTouchMode="false"
android:layout_marginLeft="10sp"
android:layout_marginRight="10sp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:divider="#ECECEC"
android:scrollbars="none"
android:background="@drawable/border_list"
android:dividerHeight="1sp"/>
</LinearLayout>
</ScrollView>