How can I change the EditText?

I have an EditText, and I want to report every time the text changes (with each character input). Which implementation should I use and which function should I override?

+5
source share
2 answers

Use the method addTextChangedListenerin your EditText and create your own class or define an inner class that implements the class TextWatcher:

https://developer.android.com/reference/android/widget/TextView.html#addTextChangedListener(android.text.TextWatcher)

+15
source

You can declare a boolean variable as false and at any time et.edited make it true

0
source

All Articles