Nested Scrollview Inside RecyclerView not triggering onscrolllistener (Paggination) when scrolling down/ pagination in nestedscrollview android

January 01, 2018 , 0 Comments

Hi Friends, Now a days i facing problem.

Nested Scrollview Inside RecyclerView Continue Trigger or Not Trigger.

For Paggination You can Use previous Tutorials,

Here Solution is Recycler loading removed and Give Scrolllistioner on nestedscroll.

-----------------------------SNIPPET CODE ----------------------------------

nestedScrollviewObject.setOnScrollChangeListener(new NestedScrollView.OnScrollChangeListener() {
@Override
public void onScrollChange(NestedScrollView v, int scrollX, int scrollY, int oldScrollX, int oldScrollY) {
if (v.getChildAt(v.getChildCount() - 1) != null) {
if ((scrollY >= (v.getChildAt(v.getChildCount() - 1).getMeasuredHeight() - v.getMeasuredHeight())) &&scrollY > oldScrollY) {

}
}
}
}
});

Contributer

Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a fishy bastard. Google

0 comments:

Popular Posts