Android button - How to set focusable to true and still accept onClick listener on first click?

后端 未结 3 1528
暗喜
暗喜 2021-01-01 23:34

UPDATE

I\'ve solved the clicking issue by removing the two focusable lines from the button style and using the onClick event handler to call r

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-02 00:17

    You can use onTouch. This way you can handle all clicks without having to set OnFocusChangeListener.

提交回复
热议问题