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

  • Home
  • SEARCH
  • 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 8117095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:03:05+00:00 2026-06-06T04:03:05+00:00

I am working on an android application and I am trying to follow the

  • 0

I am working on an android application and I am trying to follow the guidelines for the Ice Cream Sandwich UI.

I have a ListActivity which contains a ListView and within the ListView I am have a TextView for each item within an ArrayAdapter. When I want to be able to do, is once the user long clicks on an item within the ListView and Context Activity Bar is shown and the item that was long clicked is now in a selected state. From there the user can then click on multiple items within the ListView making them all selected and then the user can press a button within the ActionBar to perform an action on all selected items within the ListView.

I’ve got it triggering to show the context activity bar when the item is long clicked but I have no idea how I can make the item appear selected and allow the user to select/deselect the items within the ListView.

Thanks for your help

  • 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-06-06T04:03:06+00:00Added an answer on June 6, 2026 at 4:03 am

    Do as is described here.

    How to highlight selected item in ListView?

    Basically you need to set the multiselect listener and then selection type. Do what you need from the actionmode callbacks

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

Sidebar

Related Questions

I am working on an android application. In which i have slideShows. I am
I'm working on a client-server Android application and trying to figure out how to
I'm trying to connecting SQL Azure from my android application. The code is working
I am working on Android Application. Now I have requirement of search the entered
I am working on an android application which is sort of an e-reader but
I'm working on an android application which allows users to create accounts on a
I am working on designing an Android application, and I have several questions I
I am trying to use the Jets3t library within an Android application, and I
I am working on an Android Application where I am trying to track movement
Hi am working on an android application. And am using a listview in some

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.