-
-
Save codeforfun-jp/3786da17f3e1cad9130d667baa13bd10 to your computer and use it in GitHub Desktop.
Android Quiz App Kotlin 7-3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun onCreate(savedInstanceState: Bundle?) { | |
/* 省略 */ | |
// 正解数を取得 | |
val score = intent.getIntExtra("RIGHT_ANSWER_COUNT", 0) | |
// TextViewに表示する | |
binding.resultLabel.text = getString(R.string.result_score, score) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment