You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered: