Android listActivity onListItemClick with CheckBox
问题 my question is how to access and change the checkBox mode for any item in a listactivity. I have an XML template file with a checkbox and a textview, and these define a row. Here's what I'm trying so far: @Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); Toast.makeText(this, "You selected: " + Integer.toString(position), Toast.LENGTH_LONG).show(); CheckBox checkbox = (CheckBox) findViewById(R.id.checkbox); if