For some reason setItemChecked doesn\'t work. can some one help me fix ti ?
String[] str = getResources().getStringArray(R.array.brush_type); sizeArrayAdapte
The docs say this:
Sets the checked state of the specified position. The is only valid if the choice mode has been set to CHOICE_MODE_SINGLE or CHOICE_MODE_MULTIPLE.
So you might try:
list.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
before calling setItemChecked.
setItemChecked