Recyclerview inside Nested Scrollview scroll but does not fast scroll like normal Recyclerview or Nested Scrollview
try recyclerView.setNestedScrollingEnabled(false);
try recyclerView.setNestedScrollingEnabled(false);
You can use NonScrollExpandableListView you can achieve non-scroll property of any Lisview or GridView or ExpandableListView by overriding following method. @Override public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int heightMeasureSpec_custom = MeasureSpec.makeMeasureSpec( Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, heightMeasureSpec_custom); ViewGroup.LayoutParams params = getLayoutParams(); params.height = getMeasuredHeight(); } So for using NonScrollExpandableListView you need to make one … Read more
NestedScrollView as the name suggests is used when there is a need for a scrolling view inside another scrolling view. Normally this would be difficult to accomplish since the system would be unable to decide which view to scroll. This is where NestedScrollView comes in.
Follow this steps : 1. Set nested scrolling enabled false of recycler view. recyclerView.setNestedScrollingEnabled(false); 2. Add scroll listner to nested scrollview. mScrollView.getViewTreeObserver().addOnScrollChangedListener(new ViewTreeObserver.OnScrollChangedListener() { @Override public void onScrollChanged() { View view = (View)mScrollView.getChildAt(mScrollView.getChildCount() – 1); int diff = (view.getBottom() – (mScrollView.getHeight() + mScrollView .getScrollY())); if (diff == 0) { // your pagination code } } … Read more