-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
bugSomething isn't workingSomething isn't working
Description
- Device:
- OS Version:
- Project Version:
🐛 Describe
If the list is redrawn when the first item visible on the screen is out of the screen, the last item exposed on the screen is not drawn.
🐌 Steps to reproduce
- Scroll the list so that the first item is off-screen
- In this case, the last item visible on the screen is not all exposed and a part must be outside the screen.
- When RecyclerView's notifyDataSetChanged() function is called
🦋 Expected behavior
The last item is not drawn
🪲 Other info
my fix suggestion
override fun onLayoutChildren(recycler: RecyclerView.Recycler, state: RecyclerView.State) {
...
if (sizeFilled == 0) {
sizeFilled = if (orientation == VERTICAL) {
layoutRect.top
} else {
layoutRect.left
}
}
sizeFilled += item.size
🐝 Requested assignment
If possible, I would like to fix this.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working