Solved

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

Posted on 2016-10-12
2
28 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 17

Accepted Solution

by:
Chris Harte earned 500 total points (awarded by participants)
ID: 41841734
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 17

Expert Comment

by:Chris Harte
ID: 41869845
OP never responded to a request for more information.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Working settings for French ISP Orange "Prêt à Surfer" SIM cards for data connections only. Can't be found anywhere else !
A short article about a problem I had getting the GPS LocationListener working.
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.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

756 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