Code example for CheckedTextView

Methods: setCheckMarkDrawable

0
                // Decide which check-state notation to visualize (check box, 
                // radio button or none). 
                switch (choiceMode)
                { 
                case ListView.CHOICE_MODE_MULTIPLE:
                    mCheckedTextView.setCheckMarkDrawable(mCheckDrawable);
                    break; 
                 
                case ListView.CHOICE_MODE_SINGLE:
                    mCheckedTextView.setCheckMarkDrawable(mRadioDrawable);
                    break; 
                 
                default: 
                    mCheckedTextView.setCheckMarkDrawable(null);
                    break; 
                } 
            } 
        } 
    } 
     
    /*