SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to simulate the old anonymous way in Kotlin I found this worked perfectly.
btnNewWay!!.setOnClickListener(object:View.OnClickListener { override fun onClick(v: View?) { //Your Code Here! }})