Solved

Show Shortlisted and data which is not shortlisted both in a single custom ListView in android?

Posted on 2016-10-12
2
23 Views
Last Modified: 2016-11-02
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.
0
Comment
Question by:Apurva Matey
  • 2
2 Comments
 
LVL 16

Accepted Solution

by:
Chris Harte earned 500 total points (awarded by participants)
Comment Utility
We will probably have to see some code. However, I assume you are changing the colour of the item with an onClick() method. Are you storing the colour change?
If it is stored is the onCreate()  method reading the value of the colour change?
0
 
LVL 16

Expert Comment

by:Chris Harte
Comment Utility
OP never responded to a request for more information.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Working settings for French ISP Orange "Prêt à Surfer" SIM cards for data connections only. Can't be found anywhere else !
If your app took Google’s lash recently, here are the 5 most likely reasons.
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now