ViewPostImeInputStage ACTION_DOWN

前端 未结 6 1663
抹茶落季
抹茶落季 2020-12-06 05:08

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

6条回答
  •  离开以前
    2020-12-06 05:13

    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.

提交回复
热议问题