Show Shortlisted and data which is not shortlisted both in a single custom ListView in android?
Posted on 2016-10-12
I am new to android development. I need to implement user shortlisting concept in my android app.
In my android app, I retrieve user details arraylist from database which I shown in a custom ListView. My ListView consists of shortlist button. On which, when I clicked, the user is shortlisted and saved in database table successfully and background color of that button is changed. But when I close the app and reopen it, my shortlist button does not shown changed background color.
In my app, I want to show both
1. shortlisted data with changed background color and
2. data which is not shortlisted by the user
in one ListView.
How can I implement this in my app. Please help me.
Thanks in Advance.