📜  btn start activity kotlin 代码示例

📅  最后修改于: 2022-03-11 14:53:32.884000             🧑  作者: Mango

代码示例1
val botao_registar = findViewById(R.id.btn_registar) as Button
        botao_registar.setOnClickListener{

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

        }