这是我的自定义适配器:
...
@Override
public View newView(Context context, Cursor cursor, ViewGroup parent) {
LayoutInflater inflater = LayoutInflater.from(context);
View v = inflater.inflate(android.R.layout.simple_list_item_checked, parent, false);
return v;
}
...
现在这在视觉上似乎正是我所需要的。问题是当我单击列表视图项时,我无法切换选中状态。有什么解决办法吗?