I tried to show simple checked list and I need some items to be checked.
Here is my code
ArrayAdapter<Task> taskAdapter = new ArrayAdapter<Task>(this, android.R.layout.simple_list_item_checked, tasksList);
this.getListView().setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
this.getListView().setItemChecked(2, true);
setListAdapter(taskAdapter);
<ListView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="wrap_content">
And still it doesn't work. Implementation of Checkable interface didn't help.
What's the trick of this ListView?