Skip to content Skip to sidebar Skip to footer

Scroll Behaviour Of Androidx Recyclerview View With Nestedscrollview

I'm migrating my application from appcompat to AndroidX. Everything works except that I am not able to set one scroll for both androidx.core.widget.NestedScrollView and androidx.

Solution 1:

use this:

app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"

instead of this:

app:layout_behavior="@string/appbar_scrolling_view_behavior"

Solution 2:

It appears that you need to remove the layout_behavior attribute from the RecyclerView since you have nested scrolling disabled for it (and already have it set for the NestedScrollView)

Post a Comment for "Scroll Behaviour Of Androidx Recyclerview View With Nestedscrollview"