Skip to content

Instantly share code, notes, and snippets.

@addeeandra
Created February 18, 2020 07:18
Show Gist options
  • Save addeeandra/458c8b584597c166ebe65aca56e4bb01 to your computer and use it in GitHub Desktop.
Save addeeandra/458c8b584597c166ebe65aca56e4bb01 to your computer and use it in GitHub Desktop.
A simple TextWatcher, cause you don't need all of its functions
import android.text.Editable
import android.text.TextWatcher
abstract class SimpleTextWatcher : TextWatcher {
override fun afterTextChanged(s: Editable?) {
}
override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) {
}
override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment