I am developing a Multi-Device Application in Firemonkey where Main class has a ListBox component with some items. Each of these items has the same custom style.
My problem is when I have so many items in the ListBox and I have to do scroll vertical to see the rest of items. In this case, the ListBox has a strange behaviour and when I do scroll up after doing scroll down the item’s components (a button for example) have changed his background colour and the items have changed his order inside ListBox.
For example, if I had:
after I do scroll I have:
This change is random. Each time is different.
1.Load the Main class where is ListBox.
2.Do vertical scrolling down to see the rest of items.
3.Do vertical scrolling upward to return to the top of the list.
4.The items have changed position in the ListBox and the button (component of each item) changes its background color.
Why I have this behaviour in the ListBox?? How I can solve it and the ListBox do not change items order neither background colour of his components?
I do not know if there is any property to block items inside ListBox or similar …
Thanks so much for your attention.