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"