Answers for "kotlin activity example button"

2

btn start activity kotlin

val botao_registar = findViewById<View>(R.id.btn_registar) as Button
        botao_registar.setOnClickListener{

            val intent = Intent(this, Registo::class.java)
            startActivity(intent)

        }
Posted by: Guest on November-15-2021
0

button kotlin

button1.setOnClickListener {
    // Handler code here.
    val intent = Intent(context, DestActivity::class.Java)
    startActivity(intent);
   }
Posted by: Guest on June-04-2020

Code answers related to "kotlin activity example button"

Browse Popular Code Answers by Language