We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm initializing the adapter using this code:
adapter.setEndlessScrollListener(this, ProgressItem()) .setEndlessScrollThreshold(Config.scrollThreshold) .setLoadingMoreAtStartUp(true) adapter.endlessPageSize = Config.pageSize adapter.addScrollableHeader(AddUsItem()) fragment_post_list_recycler.layoutManager = LinearLayoutManager(activity) fragment_post_list_recycler.adapter = adapter
and my endless scroll listener looks like this:
override fun noMoreLoad(newItemsSize: Int) = println("All posts loaded") override fun onLoadMore(lastPosition: Int, currentPage: Int) { viewModel.loadPage(currentPage).subscribe { posts -> val postItems = posts.mapIndexed { index: Int, post: Post -> val showAd = (index + lastPosition + 1) % adFrequency == 0 PostItem(post, showAd) } adapter.onLoadMoreComplete(postItems) } }
The header always appears under main items, but above progress item.
I have downgraded to v5.0.0-rc3 for now, which seems to have solved the issue.
The text was updated successfully, but these errors were encountered:
8133d12
No branches or pull requests
I'm initializing the adapter using this code:
and my endless scroll listener looks like this:
The header always appears under main items, but above progress item.
I have downgraded to v5.0.0-rc3 for now, which seems to have solved the issue.
The text was updated successfully, but these errors were encountered: