Android: Listview loses information/status when you put the app in the background

Asked

Viewed 41 times

0

Good afternoon,

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

What happens is that when the listview is initially loaded the correct corrections appear in each of the records, however if I perform several scrools along the listview this will lose 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 put the focus again the records start to appear all the same color.

Does anyone have any idea what’s going on?

Sincerely yours Nuno Santos...

1 answer

1

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

Example, on the Adapter:

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.