Nested Recyclerview Not Scrolling
I'm having a problem adding a recycler view inside another recycler view. The child recycler is inside a CardView and the CardView is inside the parent recycler view. I tried all s
Solution 1:
Add android:nestedScrollingEnabled="false"
to your child RecyclerView , it should work.
Solution 2:
Editted
you have to disable parent recyclerView touch event while scrolling child Recyclerview
latestBidsInCenter.setOnTouchListener(newView.OnTouchListener() {
@OverridepublicbooleanonTouch(View v, MotionEvent event) {
if (v.getId() == child.getId()) {
if (MotionEventCompat.getActionMasked(event) == MotionEvent.ACTION_UP) {
bidCenter.requestDisallowInterceptTouchEvent(false);
} else {
bidCenter.requestDisallowInterceptTouchEvent(true);
}
}
returnsuper.onTouchEvent(event);
}
});
Post a Comment for "Nested Recyclerview Not Scrolling"