As I\'m trying to debug my program, I can\'t figure out the error.
I have initialized two buttons and used .setOnClickListener on them. When the user clicks the bu
None of the solutions above worked to me. Pretty strange bug, wondering if some view is intercepting the touch events and broking it, maybe some appcompat stuff, there is a lot of touch intercepts over there…
Anyway, I workarounded the problem adding a transparent View
over my real broken button and adding the click listener on this view, pretty ugly but it worked ¯\_(ツ)_/¯
e.g. imagine the error happened in this layout:
I added the transparent view and I set the click on it.
Again, it is an ugly solution, but still a solution.