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 4080252
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:54:23+00:00 2026-05-20T17:54:23+00:00

I know it is possible to graphically toggle the checked state of an item

  • 0

I know it is possible to graphically toggle the checked state of an item in a ListView. But how is this done?
I have a ListView containing several CheckedTextView items, and I’ve tried setting the checked state of these items by calling

list.setItemChecked(arg2, false);

and respectively

list.setItemChecked(arg2, true);

This is called in the OnItemClickedListener of my ListView, so the arg2 is the index of the item clicked. Nevertheless, the item doesn’t get checked. Is there a call to the listAdapter that I’m missing? Or what could this be?

  • 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-20T17:54:24+00:00Added an answer on May 20, 2026 at 5:54 pm

    What layout are you using for the ListItems? android.R.layout.simple_list_item_multiple_choice?

    Your android:choiceMode also has to be set to either singleChoice or multipleChoice.

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

Sidebar

Related Questions

I know its possible to receive a dayClick event on Fullcalendar. But I would
I know how to record audio in actionscript 3. But is it possible to
I know its possible to increase the size of a dynamically allocated array. But
I know its possible to do something like this with Windows: MessageBox(hWnd, Yes, No,
Tell me if this is even possible: I have a gridview bound to an
Horrible title of this question, I know. Sorry. I have four divs similar to
I know its possible to accept a list of objects as a parameter thanks
I know its possible to use a wakelock to hold the screen, cpu, ect
I know its possible to open an app from mobile safari using custom URL
Of course I know is possible to create a file with a certain size

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.