Created
May 22, 2020 13:05
-
-
Save PatilShreyas/e7cd74dd256a6ad0bc16d94a60d7fb80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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