Skip to content

Instantly share code, notes, and snippets.

@le0nidas
Created March 14, 2021 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save le0nidas/f78bdd38aee13a0924728b7e61ad82a9 to your computer and use it in GitHub Desktop.
Save le0nidas/f78bdd38aee13a0924728b7e61ad82a9 to your computer and use it in GitHub Desktop.
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val bindings = ActivityMainBinding.inflate(layoutInflater)
setContentView(bindings.root)
with(bindings) {
userInput.doAfterTextChanged { text ->
userResult.text = text
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment