由于某些原因setItemChecked不起作用.可以帮帮我修吗
@H_403_2@String[] str = getResources().getStringArray(R.array.brush_type);
sizeArrayAdapter = new ArrayAdapter<String>(this.getContext(),R.layout.drawing_list_item,str);
listType = SIZE_LIST;
listView.setAdapter(sizeArrayAdapter);
// Populate the listView
listView.setItemChecked(4,true);
这是列表项:
@H_403_2@<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drawingCheckedTextView" android:layout_width="fill_parent" android:layout_height="?android:attr/listPreferredItemHeight" android:gravity="center_vertical" android:checkMark="?android:attr/listChoiceIndicatorSingle" android:background="@drawable/list_panel" android:paddingLeft="6dip" android:paddingRight="6dip"/>请帮帮我.