方式一
val intent = Intent(context, SecondActivity().javaClass)
startActivity(intent)
方式二
val intent = Intent(context, SecondActivity::class.java)
startActivity(intent)
安卓开发技术分享: https://www.jianshu.com/p/442339952f26
val intent = Intent(context, SecondActivity().javaClass)
startActivity(intent)
val intent = Intent(context, SecondActivity::class.java)
startActivity(intent)
安卓开发技术分享: https://www.jianshu.com/p/442339952f26
本文标题:Kotlin实现Activity跳转(startActivity
本文链接:https://www.haomeiwen.com/subject/wglzqqtx.html
网友评论