vendredi 13 mars 2020

Android CompoundButton makes Textviews unclickable

I have a CompoundButton (Checkbox or ImageButton) on the right of a Textview. That makes the Textview unclickable for some reason. Both views are in a linearlayout, representing one item of a listview. The Textview is used by listviews onItemClick method. The problem is, when the CompoundButton is visible, the onItemClick method is never called, although I am clicking on the TextView. Please, anyone knows how to make it clickable with the CompoundButton?




Aucun commentaire:

Enregistrer un commentaire