Open J-0-Min opened 6 years ago
in AsymmetricRecyclerview the layout manager is linearLayoutManager and you must solve pagination problem like this:
if (isLastItem()) { // your call api and page handling must be here. }
private fun isLastItem(): Boolean { val layoutManager = yourRecyclerview.layoutManager as LinearLayoutManager val pos = layoutManager.findLastCompletelyVisibleItemPosition() val itemsCount: Int = layoutManager.findLastVisibleItemPosition() return pos >= itemsCount }
Help me..
Made from (Asymmetric in Grid form).
however, It is difficult to add an RecyclerView Endless Scroll Paging function.
I long for help. please.