Created
June 23, 2017 23:37
-
-
Save alesanabriav/ae44b93073a15a142474c9d6aa142fab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
editText.addTextChangedListener(object: TextWatcher { | |
override fun afterTextChanged(s: Editable?) { | |
textAge.text = s.toString() | |
} | |
override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { | |
} | |
override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { | |
println(s) | |
textAge.append(s) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment