I have a ListView that is clickable in a class(a new activity is opened, when you click on it), that extends ListActivity.This List get's filled through an arrayAdapter. Now I've tried to make the list checkable by implementing "android.R.layout.simple_list_item_single_choice" in the second Parameter of the ArrayAdapter Constructor. So the checkbox has arrived, but when I click on it, the activity is opened, but the checkbox isn't checked. To solve this issue, I`ve set the Parameters "focusable" and "focusableInTouchMode" of the ListLayout to false. But this hasn't worked either. I guess, that I have a problem with the focusable Parameter, but I think I have to change it anywhere else. But because the arrayAdapter takes away the work to define a layout for a single ListItem, I don't know where to do this. When I try to define a layout with a checkbox on my own, I get the error, that an ArrayAdapter requires the resource ID of the layout to be a TextView. So
Is it possible to solve this problem with an ArrayAdapter?
If yes, how can I solve it?
I appreciate your suggestions