android / codelab-android-paging

Jetpack Paging codelab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mixed up values when scrolling

vusimoy0 opened this issue · comments

First of all thanks for the code lab and this repo. It's helped me get to know the library quite well.

Secondly, I'm not sure if this is the correct place to post this as I really want help specifically with this lib.

I implemented paging 3 following the code lab as a great launchpad. I've double checked the implementation over and over but for some reason when I scroll down my list then back up, my data gets shuffled between views and can't figure out what's causing it.

Below is what happens when I scroll down and up on a sample finance app that shows a list of transactions and how each category displays about paid. The categories that don't have any amount for that day are hidden from view, which explains why some categories are displayed and some aren't. However if we use the first section as an indicator to the issues I'm having, in an instance, one category is repeated twice, then amounts from other days get shifted to category one when I scroll further down then back up again

device-2021-04-23-133312.mp4

Library versions:

room_version = '2.3.0-rc01'
paging3_version = '3.0.0-beta03'

Thanks for help in advance