1
0

More than 3 years have passed since last update.

【Kotlin初心者】intentを使って画面遷移してみた

Posted at

画面遷移する方法

Androidアプリを作成する際に必須の画面遷移の実装についてメモを書きます。

NextActivity.ktというClassを指定してstartActivityにintentを渡してあげるだけで、
画面遷移が可能です。

MainActivity.kt

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

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0