SyntaxFix
Write A Post
Hire A Developer
Questions
Simply do as below :
button.setOnClickListener{doSomething()}