Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
private fun initListeners() {
editText_name.addTextChangedListener {
viewModel.setFirstName(it.toString())
}
editText_password.addTextChangedListener {
viewModel.setPassword(it.toString())
}
editText_user.addTextChangedListener {
viewModel.setUserId(it.toString())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment