Solved

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

Posted on 2016-10-12
2
25 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)
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 16

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
API for Viber/Whatsup/etc 3 72
Sending SMS messages from a Landline 2 112
Android Security Model 3 93
Applications for Android phones and other phones. 13 49
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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.
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…

895 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

13 Experts available now in Live!

Get 1:1 Help Now