Change EditText text from onTextChangeListener()

前端 未结 2 341
没有蜡笔的小新
没有蜡笔的小新 2021-01-13 18:10

I am working on an Android application.In my app I have to use images based on the text.So I write OnChangeListener() for EditText.The following is

2条回答
  •  执念已碎
    2021-01-13 18:45

    Just simply remove your listener before you set the text, and register it again after you are done, like described here:

    Clear EditText text after adding onTextChanged implemenation

提交回复
热议问题