OnEditorActionListener not working

前端 未结 6 1351
心在旅途
心在旅途 2021-01-01 22:51

I simply want to catch the event when the user press enter on an editText.

I did not get the Toast message, not the \"Enter pressed\" and not the \"Some key pressed!

6条回答
  •  悲哀的现实
    2021-01-01 23:43

    The problem for me was that I had set in XML android:inputType="textMultiline". When I removed textMultiline option, the EditorListener started working.

提交回复
热议问题