I'm using a code that is not mine in my work. This code uses CheckedTextView, do this:
...
AlertDialog.Builder alert;
v.performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY);
switch (soundPreference.getType()) {
case BOOLEAN:
CheckedTextView checkedTextView = (CheckedTextView) v;
boolean checked = !checkedTextView.isChecked();
((CheckedTextView) v).setChecked(checked);
switch (soundPreference.getKey()) {
case SOUND_ACTIVE:
sound.setAlarmActive(checked);
break;
...
works perfectly, the problem is that I want I want to change the checkbox graphic. Right now it looks like (defualt, I think):
and I want to get something like this:
if the CheckedTextView were defined in xml, know how to do it. My problem is not being defined in xml, do not know how to do it.
I found this: Customize the CheckedTextView for ListView but I do not know how to implement it
appreciate any help.
Thank you very much in advance