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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:18:47+00:00 2026-06-03T04:18:47+00:00

The question may sound tricky…. but, the thing is, I’ve got a custom list

  • 0

The question may sound tricky….

but, the thing is, I’ve got a custom list view with a checkbox and a textview on every row… I’ve used android:onClick=”checkmethod” to make a process when a checkbox are checked..

here’s a sample code..

public void checkMethod(View v) {
LinearLayout vwParentRow = (LinearLayout)v.getParent();
CheckBox check = (CheckBox) vwParentRow.findViewById(R.id.checkBox_list);
  if (check.isChecked()) {
      //My process goes here
  }else{
      //Another process comes here
  }
}

now, what I want to do is checking the checkboxes if their states are all unchecked…
how can I do this? can someon please help me asap? thanks in advance!!

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

    This is the fastest and simplest approach I know about:

    • Add an private int counter as a class member, and initialize it to 0.
    • When checkbox is selected – increment counter
    • When checkbox is deselected – decrement counter
    • Whenever you need to check if no checkbox is checked – just check if counter == 0
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My question may sound naive, but really struggling to do a very simple thing.
The question may sound a bit stupid but I think it's interesting. Is it
I have a question that may sound odd, but being somewhat of a newbie,
This may sound like a stupid question, perhaps it is. But I'm only trying
This may sound like an unusual question, but I am curious as to how
This may sound like a stupid question but I'm a beginner not just to
The question may sound strange but I've been struggling with it for a few
The question may sound a bit naive or stupid, but i was wondering...will POST
This question may sound silly.. but my intention is to understand advantages of Java
This question may sound cliched, but I am in a situation here. I am

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.