Skip to content

Instantly share code, notes, and snippets.

@le0nidas

le0nidas/debounce_initial.kt Secret

Created Mar 14, 2021
Embed
What would you like to do?
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