Я просто хочу, чтобы прокручивал мое вложенное представление прокрутки, я не хочу, чтобы списки прокручивались. По какой-то причине вид прокрутки не прокручивается. Я просмотрел несколько постов, связанных с вложенными представлениями прокрутки, представлениями прокрутки со списком, ни одно из решений не помогло. Странно, что прокрутка не работает, я не уверен, что что-то упустил. Кроме того, мои списки просмотра имеют динамические c высоты.
Вот мой код:
<android.support.v4.widget.NestedScrollView
android:id="@+id/ns_scroll"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/grey"
android:orientation="vertical">
<TextView
style="@style/customFontStyleBook"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:padding="5dp"
android:text="Heading 1"
android:textColor="#000"
android:textStyle="bold"/>
<ListView
android:id="@+id/ll1"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/grey"
android:orientation="vertical">
<TextView
style="@style/customFontStyleBook"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:padding="5dp"
android:text="Heading 2"
android:textColor="#000"
android:textStyle="bold"/>
<ListView
android:id="@+id/ll2"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/grey"
android:orientation="vertical">
<TextView
style="@style/customFontStyleBook"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:padding="5dp"
android:text="Heading 3"
android:textStyle="bold"
android:textColor="#000" />
<ListView
android:id="@+id/ll3"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>