Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get EditText change?

I have a EditText and I want to inform each time text changes (with entering each character). What implementation should I use and what function should I override?

like image 344
Hesam Avatar asked Nov 29 '10 13:11

Hesam


1 Answers

Use the addTextChangedListener method on your EditText and make your class implement or define an inner class implementing the TextWatcher class:

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

like image 116
eMich Avatar answered Sep 19 '22 10:09

eMich