I would like to set a checkbox in a listview's click-event. How can I set the right checkbox?
This is my code:
listView.setOnItemLongClickListener(new OnItemLongClickListener()
{
@Override
public boolean onItemLongClick(AdapterView<?> adapter, View view,
int position, long id)
{
Checkbox checkbox = ??
checkbox.setChecked(true);
return true;
}
});