android listview check 事件

		list.setOnItemClickListener(new OnItemClickListener() {
			public void onItemClick(AdapterView<?> parent, View view,
					int position, long id) {
				boolean checked=list.getCheckedItemPositions().get(position);
				if(checked){
					//选中
				}else{
					//取消选中
				}
			}
		});

你可能感兴趣的:(java,android)