Android RecyclerView max scroll offset -


which recyclerview function returns max scroll offset?

i need determine, can hide footer of activity or not, recyclerview scroll.

the asked function recyclerview.computeverticalscrollrange();

this function returns true if end of scrolling reached.

static private boolean ismaxscrollreached(recyclerview recyclerview) {     int maxscroll = recyclerview.computeverticalscrollrange();     int currentscroll = recyclerview.computeverticalscrolloffset() + recyclerview.computeverticalscrollextent();     return currentscroll >= maxscroll; } 

Comments