Skip to main content
added 766 characters in body
Source Link

Use the gesture detector to get the scroll event in RecyclerView.

EDIT Replacing ScrollView with NestedScrollView solved my problem of recyclerview scrolling.

final NestedScrollView parentScrollView=(NestedScrollView)view.findViewById (R.id.parentScrollView); parentScrollView.setOnScrollChangeListener(new NestedScrollView.OnScrollChangeListener() { @Override public void onScrollChange(NestedScrollView v, int scrollX, int scrollY, int oldScrollX, int oldScrollY) { // Log.d("ScrollView","scrollX_"+scrollX+"_scrollY_"+scrollY+"_oldScrollX_"+oldScrollX+"_oldScrollY_"+oldScrollY); //Do something } } }); 

Use the gesture detector to get the scroll event in RecyclerView.

Use the gesture detector to get the scroll event in RecyclerView.

EDIT Replacing ScrollView with NestedScrollView solved my problem of recyclerview scrolling.

final NestedScrollView parentScrollView=(NestedScrollView)view.findViewById (R.id.parentScrollView); parentScrollView.setOnScrollChangeListener(new NestedScrollView.OnScrollChangeListener() { @Override public void onScrollChange(NestedScrollView v, int scrollX, int scrollY, int oldScrollX, int oldScrollY) { // Log.d("ScrollView","scrollX_"+scrollX+"_scrollY_"+scrollY+"_oldScrollX_"+oldScrollX+"_oldScrollY_"+oldScrollY); //Do something } } }); 
Blew away fluff
Source Link
Nathan Tuggy
  • 2.2k
  • 27
  • 33
  • 38

I have experienced same problem recently,To solve this problem I have usedUse the gesture detector to get the scroll event in recyclerview,It is not the ideal solution ,but it worked for me. If you have better solution than this ,please share itRecyclerView.

I have experienced same problem recently,To solve this problem I have used gesture detector to get the scroll event in recyclerview,It is not the ideal solution ,but it worked for me. If you have better solution than this ,please share it.

Use the gesture detector to get the scroll event in RecyclerView.

Post Undeleted by Kaleem Patel
Post Deleted by Kaleem Patel
Source Link

I have experienced same problem recently,To solve this problem I have used gesture detector to get the scroll event in recyclerview,It is not the ideal solution ,but it worked for me. If you have better solution than this ,please share it.