W0lf7
W0lf7

Reputation: 759

Updating TextViews live as you type in Android

I'm trying to programme an Android app that will update some TextViews as I enter some values into some EditText views (live updating). I thought maybe using a while loop in some form might help but I wondered if there is a better way of doing it.

Upvotes: 1

Views: 724

Answers (1)

Cehm
Cehm

Reputation: 1512

Yes, there is a beter way. Just use :

textMessage.addTextChangedListener(new TextWatcher(){...}

And use the onTextChanged(...) function from the textwatcher in order to modify the content of your label.

Upvotes: 7

Related Questions