private int getPerPage ( Context context ) { //fixed item size in recyclerview. Adding 3 enables recyclerview scrolling. return ( context . getResources ( ) . getDisplayMetrics ( ) . heightPixels / context . getResources ( ) . getDimensionPixelSize ( R . dimen . repo_item_height ) ) + 3 ; }
Get items to load per page onScroll .