cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX ScrollList Show UpTo 2000 Items, Callback itemIndex is intermittent change

phatnt
Associate

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:

2026-01-21_15h20_39.png

 

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:

2026-01-21_15h14_41.png

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:

  1. Are there any solutions to show up 2000 item that we can easy manage to show DateTile or ItemInfo?
  2. Are there the way to resolve the problem itemIndex callback intermittent change?

@Ted THOMPSON 

Thanks,

Phat

0 REPLIES 0