private Button deleteSel;
c.moveToFirst();
while(!c.isAfterLast())
{
tskId[i] = c.getInt(0);
tskType[i] = c.getString(1);
tskDate[i] = c.getString(2);
taskStatus[i] = (c.getString(3).equals("true"))? true : false;
alarmStatus[i] = (c.getString(4).equals("true"))? true : false;
i++;
c.moveToNext();
}
List<HashMap<String,String>> aList = new ArrayList<HashMap<String,String>>();
//aList = new ArrayList<HashMap<String,String>>();
for(i=0;i<c.getCount();i++){
hm = new HashMap<String,String>();
hm.put("txtTitle", tskType[i]);
hm.put("txtTime",tskDate[i]);
aList.add(hm);
}
c.close();
CustomListAdapter listAdapter = new CustomListAdapter(this , R.layout.deletes_supporting , aList);
lstvwDelete.setAdapter(listAdapter);
}
//customListAdapter 是用户定义的类来设计列表视图现在我想删除用户使用 deleteButton 检查的项目。请帮忙...