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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:28:15+00:00 2026-06-02T20:28:15+00:00

In my code I’m using a structure like in the picture below: After checking

  • 0

In my code I’m using a structure like in the picture below:

enter image description here

After checking the CheckBox, on send Button click, I am reading the status of the CheckBoxes like the code written below but it is showing me unchecked.
CheckboxName.isChecked() value is false but my CheckBox is checked:

  try {
                int nCount = NotebookList.getCount();
                LinearLayout v;
                View vv;
                CheckBox Available, Display, Demo;
                v = (LinearLayout) findViewById(R.id.LinearNotebookList);
                TextView _id, ID, Name;
                for (int i = 0; i < nCount; i++) {
                    v = (LinearLayout) NotebookList.getAdapter().getView(i, null,
                            null);
                    _id = (TextView) v.findViewById(R.id.txt_Notebook_ID);

                    Available = (CheckBox) v
                            .findViewById(R.id.chkboxNotebookAvailable);
                    Display = (CheckBox) v.findViewById(R.id.chkboxNotebookDisplay);
                    Demo = (CheckBox) v.findViewById(R.id.chkboxNotebookDemo);
                    str_id = (String) _id.getText();

                    if (Available.isChecked()) {
                        strAvailable = "YES";
                    } else {
                        strAvailable = "NO";
                    }
                    if (Display.isChecked()) {
                        strDisplay = "YES";
                    } else {
                        strDisplay = "NO";
                    }
                    if (Demo.isChecked()) {
                        strDemo = "YES";
                    } else {
                        strDemo = "NO";
                    }

                    rowID += db.insertAudit(Integer.parseInt(UserId),
                            Integer.parseInt(CityId), Integer.parseInt(OutletId),
                            0, dateTime, "002", Integer.parseInt(str_id),
                            strAvailable, strDisplay, strDemo, null, null, null,
                            null, null, null, null, null, null, null, Instance_Id)
                            + ",";

                }
            } catch (Exception ex) {
                Toast.makeText(getApplicationContext(), ex.getMessage(),
                        Toast.LENGTH_SHORT).show();
            }

I’ve found some that could help

can i do something with the follow if yes please lemme know

LayoutInflater inflater = (LayoutInflater) context
                .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        View rowView = inflater.inflate(R.layout.desktop_list, parent, false);
  • 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-02T20:28:16+00:00Added an answer on June 2, 2026 at 8:28 pm

    To get the checkboxes working correctly on a listView you will need to use a BaseAdapter class

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

Sidebar

Related Questions

Code below sets default values for new row if row is added using form.
Code: var result = db.rows.Take(30).ToList().Select(a => AMethod(a)); db.rows.Take(30) is Linq-To-SQL I am using ToList()
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Code Currently my code looks like that. $stmt = $this->db->prepare(SELECT m.id, m.from_id, m.to_id, m.subject,
Code is below, when I hit the page with: http://ryan.local.testmode.com/timecrunch/bctimepost.ashx?project=2593059&person=2831215&date=04/16/2009&hours=2.5&case=555 it just sort of
code: #include<iostream> using namespace std; template<class T, int N> class point { T coordinate[N];
code structure @protocal A_Delegate { -(void)doIt:(BOOL)isDone; } Super Class A // has properties of
Code below works well on Firefox - displays progress bar which progresses on every
Code: #include <iostream> using namespace std; #define ADD(x,y) ((x)+(y)) int main( int argc, char**

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.