Android: Listview loses information / status when the app is placed in the background [duplicate]

0

Good afternoon,

I have an android application that fills a listview with certain information, and in this listview there is a validation that aligns the line color according to the priority of each record (eg yellow = 1, green = 2, etc ...) .

What happens and when the listview is initially loaded the corres appear correctly in each of the registers, however if I perform several scrool's throughout the listview it loses these priorities and the records end up being all of one color. The same happens if I put the app in the background and when I go back to the foreground the records will all appear to be of the same color.

Does anyone have any idea what's going on?

Sincerely yours Nuno Santos ...

    
asked by anonymous 17.01.2018 / 14:10

1 answer

1

I have a project where I use a list and in the adapter I inform you what colors they should be identified, including the original color of when the list starts without any changes.

Example, no adapter:

    
17.01.2018 / 17:50