In android I am trying to add a checktextview using this:
CheckedTextView checkedtextview = new CheckedTextView(this, null,
android.R.attr.listChoiceIndicatorMultiple);
checkedtextview.setText(personobj.lastname + ", " + personobj.firstname);
LocationLayout.addView(checkedtextview);
But when I test this, it only shows the text and I don't see the checkbox. Does anyone know how to display the checkbox?
Thanks.