Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recyclerview inside Nested Scrollview scroll but does not fast scroll like normal Recyclerview or Nested Scrollview

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?

like image 550
Aung Si Min Htet Avatar asked May 18 '16 13:05

Aung Si Min Htet


People also ask

How do I make my RecyclerView scroll smooth?

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.

What is the difference between NestedScrollView and 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.

What is the difference between RecyclerView and Scrollview?

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.

Is a RecyclerView scrollable?

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.


1 Answers

try

recyclerView.setNestedScrollingEnabled(false); 
like image 166
Yang Peiyong Avatar answered Oct 05 '22 10:10

Yang Peiyong