Created
December 4, 2020 17:51
-
-
Save putrarifin/4ed83e68680f47eb4ba3b662b2750e68 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