How do I keep the colors of items that have changed colors in the listView on Android?

0

I have a listView, and when I click on an item in the list it changes color, I needed to keep this color even after the list activity was called again. Is it possible to do this without having to save the color in the bank? Thank you in advance.

    
asked by anonymous 10.09.2015 / 20:58

1 answer

0

Extend the Application class of the android, and have a static ArrayList inside your application to save these colors, save color and position the item in the ArrayList list.

Detail this information will only be saved until the application is closed. If you close and reopen it will come with the default information, so you can persist this data permanently, with only database.

    
18.09.2015 / 19:44