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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:45:11+00:00 2026-05-26T20:45:11+00:00

I have an adapter that uses a CheckedTextView and extends from a SimpleCursorAdapter .

  • 0

I have an adapter that uses a CheckedTextView and extends from a SimpleCursorAdapter. I tried to load the default values for CheckTextView but I didn’t manage to do it. I don’t know if this it’s the behavior of CheckedTextView or I am doing something wrong.

What I have tried?

I tried to override the getView() method and get the CheckedTextView view and use setChecked(boolean), FAILED, weird that it doesn’t work.

Then I tried to use a ViewBinder, but that doesn’t work either.

Any insight to this problem?

adapter.setViewBinder(new SimpleCursorAdapter.ViewBinder() {
            public boolean setViewValue(View view, Cursor cursor,
                    int columnIndex) {
                CheckedTextView cb = (CheckedTextView) view;
                int checked=cursor.getInt(cursor.getColumnIndex(ProgramSurvey.CHECKED));
                cb.setChecked(checked==1);

                return 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-05-26T20:45:11+00:00Added an answer on May 26, 2026 at 8:45 pm

    If the View returned from getView is a CheckedTextView (or any other view that implements Checkable), then the listView will set the checked on the relevant rows, based on which rows it thinks are selected (from calls to setItemChecked). You’ll need to tell the ListView which rows are checked, rather than trying to set it yourself, or alternatively wrap your view in a view which doesn’t implement checkable, then you’ll be able to set checked yourself in the CheckedTextView.

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

Sidebar

Related Questions

I have a ListView that uses a customized adapter, but I can't click on
I have a ListView with a custom Adapter that extends ArrayAdapter. It's a ArrayAdapter
I have a ListView that uses a custom adapter. The custom adapter's getView uses
i have a personaliced spinner (that uses a adapter that uses a personalized xml
I have a GridView that uses an adapter to set ImageViews and when I
I have developed a very simple app that uses a custom adapter for a
I have a list view adapter that uses different types of view rows. Most
Trying to find the sqlserver adapter for rails on windows. I have tried getting
I have a custom ListView that uses a custom ArrayAdapter (which basically just overrides
I have a project that uses Zend Framework and Zend_Translate . I had to

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.