Skip to content

Instantly share code, notes, and snippets.

@alesanabriav
Created June 23, 2017 23:37
Show Gist options
  • Save alesanabriav/ae44b93073a15a142474c9d6aa142fab to your computer and use it in GitHub Desktop.
Save alesanabriav/ae44b93073a15a142474c9d6aa142fab to your computer and use it in GitHub Desktop.
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