Reputation: 759
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
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