Skip to content

Instantly share code, notes, and snippets.

@igorwojda
Created August 31, 2018 13:48
Show Gist options
  • Save igorwojda/252f063946458978e77612549342381a to your computer and use it in GitHub Desktop.
Save igorwojda/252f063946458978e77612549342381a to your computer and use it in GitHub Desktop.
val view = View()
view.setBeforeTextChangedListener { /* do something */ }
//...
// later in code we can set another listener
view.setAfterTextChangedListener { /* do something */ }
//no need to set 3rd listener
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment