final SimpleAdapter simpleAdapter = new SimpleAdapter(
this,
listItems,
R.layout.items_layout_choose_owner,
new String[]{ "checked"},
new int[] {R.id.chkItem}
)
{
@Override
public View getView(final int position, View convertView, ViewGroup parent)
{
//super.getView();不要用这个方法,内部会调用 bindView,内部会更新 Checkable 控件状态
LayoutInflater layoutInflater= ((LayoutInflater) parent.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE));
View viewResult;
if (convertView == null)
{
viewResult = layoutInflater.inflate(R.layout.items_layout_choose_owner , parent, false);
} else {
viewResult = convertView;
}
//setOnCheckedChangeListener