У меня есть макет с NestedScrollView, который содержит один LinearLayout.
Этот LinearLayout содержит Fragment (FrameLayout как контейнер) и RelativeLayout, содержащий RecyclerView.
Проблема заключается в том, что только RecyclerView прокрутка и предметы идут под фрагментом.
В идеале фрагмент должен прокручиваться вверх вместе с рециклером. Я попытался установить nestedScrollingEnabled = false в обзоре утилизатора, но это остановило прокрутку все вместе (даже для просмотра утилизатора).
Вот макет:
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:list="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
android:overScrollMode="never">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:animateLayoutChanges="true"
android:orientation="vertical">
<FrameLayout
android:id="@+id/header_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:animateLayoutChanges="true"
android:orientation="vertical" />
<RelativeLayout
android:id="@+id/paginated_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/header_container"
android:paddingLeft="@dimen/card_margin"
android:paddingRight="@dimen/card_margin">
... swiperefreshlayout, recyclerview here.
</RelativeLayout>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
</layout>
Может кто-нибудь сказать мне, что не так?