ViewPostImeInputStage ACTION_DOWN

前端 未结 6 1664
抹茶落季
抹茶落季 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:19

    I was getting ViewPostImeInputStage ACTION_DOWN message when a line of my code had -->

    if(button.getText().equals("word"))
    

    I got the desired output after correcting the if statement to -->

    if(button.getText().toString().equals("word"))
    

    Hope it helps someone.

提交回复
热议问题