I'm getting a checkbox inside a LinearLayout with ID, so that when you click outside space, also check the checkbox, but I have a little problem. When I put setChecked () does not refer to that row I have selected. Right now encuendo me a "ExpandableListAdapter" within groups I have this:
checkClick = ((LinearLayout) convertView.findViewById(R.id.checkClick));
checkClick.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if(sw1.isChecked()){
sw1.setChecked(false);
}else{
sw1.setChecked(true);
}
}
});*
Is there any way to reference it the row with checkbox?
Aucun commentaire:
Enregistrer un commentaire