I got a listview with items. Each item has a chekbox. Now if a item is clicked, I want to change the state of this checkbox. How can I get the ID of the checkbox when the listview item is clicked?
I got this code:
cList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> adapter, View v, int position, long arg3) {
Client currentClient = (Client) mAdapter.getItem(position);
}
});
Aucun commentaire:
Enregistrer un commentaire