How do listen EditText?

前端 未结 5 1711
小蘑菇
小蘑菇 2020-12-19 10:27

I have a EditText. I wamt tp do something, when the user presses the Enter key while changing EditText. How can I do that?

The

5条回答
  •  离开以前
    2020-12-19 10:47

    You need to use TextWatcher for this purpose. Here is an example on how to work with TextWatcher and Android textwatcher API.

提交回复
热议问题