Nestedscrollview

</LinearLayout>

For the magic to work, the inner scrollable view (e.g., RecyclerView ) must have nested scrolling enabled. In modern AndroidX versions, this is true by default, but you can explicitly set it: nestedscrollview

NestedScrollView is a component from the Android Jetpack library ( androidx.core.widget.NestedScrollView ) that supports both scrolling and hosting other scrollable views. It is similar to a standard ScrollView , but it implements the and NestedScrollingChild interfaces. &lt;/LinearLayout&gt; For the magic to work, the inner