mardi 13 mars 2018

Clicking on ClickableSpan in CheckBox changes its state

I've got an ImageSpan and ClickableSpan in my checkbox to display icon at the end of checkbox text and handle clicking on it. But clicking on it changes checkbox checked state, which is not needed.

How can I prevent changing checkbox state when user clicks on ClickableSpan?

Simply I need some equivalent of cancelPendingInputEvents() method for API 16+. Also I don't want to separate checkbox with checkbox and textview.




Aucun commentaire:

Enregistrer un commentaire