I am using RecyclerView
inside NestedScrollView
and it works. But when I use RecyclerView
inside LinearLayout
or something, it scroll in various speed depending on gesture. The scroll listen to gesture and if I slide up only a bit, then it scroll a little bit while if I slide up really fast, then it scroll really fast. Now my problem is that RecyclerView
inside NestedScrollView
certainly scroll but fast scroll does not work. However I slide up fast or slow, RecyclerView
or NestedScrollView
only scroll a little bit.
How can I make my NestedScrollView
or RecyclerView
inside that scroll view scroll in various speed?
Also, if you are using a recycler view inside the scroll view, make sure to set nested scrolling to false. Show activity on this post. Use a library as said by other comments in here. Also make sure you do not have Recyclerviews nested within a Scrollview.
NestedScrollView is just like ScrollView, but it supports acting as both a nested scrolling parent and child on both new and old versions of Android. It is enabled by default. NestedScrollView is used when there is a need for a scrolling view inside another scrolling view.
I recommend to user always RecyclerView and never a ListView. Use RecyclerView for element list and scrollview for static views. Seeing your image Scrollview inside RecyclerView or ListView have problems with drag. Use a vertical RecyclerView in all page and horizontal RecyclerView each row.
To help you build apps with lists, Android provides the RecyclerView . RecyclerView is designed to be very efficient, even with large lists, by reusing, or recycling, the views that have scrolled off the screen.
try
recyclerView.setNestedScrollingEnabled(false);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With