I have to click the button twice for it to work

前端 未结 8 1818
温柔的废话
温柔的废话 2020-12-05 04:33

So I have a button in my app and an edittext. When I click the button and write something in the edittext, a textview changes. It all works as it should except for one thing

8条回答
  •  自闭症患者
    2020-12-05 05:15

    If you are inflating view to another one, try to set on parent view:

    view.setFocusable(false);
    

    worked for me.

提交回复
热议问题