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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:15:34+00:00 2026-05-27T12:15:34+00:00

I have an Android ListView with rows that include one checkbox, and four text

  • 0

I have an Android ListView with rows that include one checkbox, and four text views per row. It’s a multiple choice list view. By default, the list view starts with some rows already checked. You can check or uncheck any row. When a user clicks the row (not the checkbox), all the rows have their checkboxes reverted back to default.

  1. Why is this happening?
  2. How do I stop it?

UPDATE

I’m using the default ListView with a SimpleAdapter and ArrayList<String, Object>

  • 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-27T12:15:35+00:00Added an answer on May 27, 2026 at 12:15 pm

    So after playing around with my code, I had an idea of what was causing the default value restore and how to stop it.

    The default value restore was issued because the items were getting re-painted. This re-paint was occurring because the click was highlighting, and (de)activating the list item. Why it happens to all the list items is beyond me, but this caused the list view to re-draw them using their default values.

    That means to stop this from happening, I should modify the source list to be “selected” when it was clicked (or “unselected” if it was already selected). Then when the re-paint occurred, the checkbox would be checked (or unchecked) appropriately.

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

Sidebar

Related Questions

In my Android App I have a listview containing 30 rows, and each row
It seems that android has enforced that a listview must have the name android:id=@android:id/list,
I have android application with ListView, where each row has own refresh button. Refreshing
I have a ListView that is populated with rows. These rows come from an
I have a an Android ListView that has small (say, 1-5 frame) stutters as
I have a ListView with a custom Adapter that creates rows containing TextViews that
I have a custom listview which changes size when one of the rows is
I have a layout that contains three rows or segments in my Android view.
I have a ListView whose rows are formatted by me. Each row has a
I have an Android app with a ListView, and each row in the list

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.