Skip to content

Instantly share code, notes, and snippets.

@PatilShreyas
Created May 22, 2020 13:05
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 PatilShreyas/e7cd74dd256a6ad0bc16d94a60d7fb80 to your computer and use it in GitHub Desktop.
Save PatilShreyas/e7cd74dd256a6ad0bc16d94a60d7fb80 to your computer and use it in GitHub Desktop.
private fun initView() {
button_plus.setOnClickListener(::incrementCounter)
button_minus.setOnClickListener(::decrementCounter)
}
private fun incrementCounter(view: View) {
viewModel.incrementCount()
}
private fun decrementCounter(view: View) {
viewModel.decrementCount()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment