Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6054919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:12:24+00:00 2026-05-23T08:12:24+00:00

Using the HelloListView example it provides code for making a quick toast notification based

  • 0

Using the HelloListView example it provides code for making a quick toast notification based on what the user clicks on in your application. I have a list I display that when an item is clicked I would like to display associated information.

My application displays a List of Tasks (custom class) by subject in a very simple ListView.

The ListView is just 1 TextView object with the Tasks Subject as it’s content.

When a task’s subject is clicked I would like to show other information about that task. To keep it simple the task should have an AccountNumber associated with it (integer value). I would like to display that.

The most direct method to do this I think is to display my list of tasks by subject then when a user clicks on a subject I could search my Task List for a task that has that subject and pull out the account number then. This has it’s holes of course. Most obviously what about tasks with the same subject?

Any tips?

Some more information on my code:

Classes:
Task – A single task, has things like start date, end date, subject, account number of the client the task is for
TaskList – A List of Task objects with functions wrapped supporting a list of Task objects

I display a list of tasks in a ListView. Right now I am only displaying a task’s subject. I want a toast notification to pop up the account number of the Task object they just clicked on.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:12:25+00:00Added an answer on May 23, 2026 at 8:12 am

    Override the list adapter class. Save all your ‘tasks’ as objects and just display the portion (‘subject’) you want when the adapter is queried for a specific item. Then you can trap the onClick like you do now and display whatever segment of the corresponding object you want.

    EDIT: Its explained better here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using a site like StackOverflow as an example: I have a table of users,
Using Visual Studio, I have built an C++ application running in 32bit. It will
Using online interfaces to a version control system is a nice way to have
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Using C#, I need a class called User that has a username, password, active
Using preview 4 of ASP.NET MVC Code like: <%= Html.CheckBox( myCheckBox, Click Here, True,
Using jQuery's UI Tabs. This is my code. <div id=tabs> <ul> <li><a href=#tabs-1>Find a
Using Core Data. Let's say we have models for Team and Player. Assume: -Each
Using gcc 4.4.3 c89: I am just working on the following code below: I
I have a working android app using TextView, some formatting (line breaks, rows of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.