So my question is the title: Android is there a method similar to onListClickView for CheckBoxs?
I have a method onListClickView to get the place where the list has been touched and get the information from that slot in the list.
protected void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, position, id);
TextView label = ((TwoLineListItem) v).getText2();
String phoneNumber = label.getText().toString();
Toast.makeText(this, "Selected " + phoneNumber, Toast.LENGTH_SHORT).show();
}
This is the method that i have but i am unaware of something similar that i could use for getting this same information for the boxes checked. Can anyone shed some light on this issue that I have?
You can listen for the checkbox being clicked: