January 2018
Intermediate to advanced
434 pages
14h 1m
English
In the following steps, we will learn how to add an event listener to Anko views:
btn_send.onClick { toast("Hello there we have recorded your message!") }
var btn = find<EditText>(R.id.btn_send)btn.setOnClickListener(object : OnClickListener { override fun onClick(v: View) { toast("Hello there we have recorded your message!") }})
verticalLayout ...
Read now
Unlock full access