Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2016-10-12
2
Medium Priority
?
32 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 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Working settings for French ISP Orange "Prêt à Surfer" SIM cards for data connections only. Can't be found anywhere else !
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
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…

721 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