2026-01-22 5:52 PM
Hi ST teams,
Currently we use the ScrollList widget to show up to 2000 items and list item is not same properties for all, I have create the custom container to support item can show one of two layout: date title and item info like image bellow:
To able detect and show list item with correct layout I have save the item info to list item and detect scroll up/down behavior follow the itemIndex callback from void HistoryView::scrollListUpdateItem(HistoryItem& item, int16_t itemIndex) if itemIntex > oldItemIndex then scroll is down else is up. With detected behavior and item info from last updated list item I will know what is next info index need to get and add to list item.
I can show correct the ItemInfo or DateTitle from list if do scroll to list with slow speed. There are problem when I scroll faster the itemIndex is intermittent change:
You can see on the image, the next item after index 22 should be 21 but it's 20 then 21. That is problem I can not show correct the DateTitle and ItemInfo after scroll faster.
My question is:
Thanks,
Phat