There are 2 TextView: inText and outText. I write a string in inText, and it should immediately appear in outText. Sheet need to hang something?
1 answer
Of course add a listener. More specifically, inText.addTextChangedListener(TextWatcher) .
https://developer.android.com/reference/android/text/TextWatcher.html
In afterTextChanged() we simply do outText.setText(inText.getText().toString()) .
|