Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Created October 24, 2024 05:31
Show Gist options
  • Save codeforfun-jp/734663f976cc1b53183300c108b7fdc6 to your computer and use it in GitHub Desktop.
Save codeforfun-jp/734663f976cc1b53183300c108b7fdc6 to your computer and use it in GitHub Desktop.
[Kotlin Quiz ver2] 4-2
override fun onCreate(savedInstanceState: Bundle?) {
/* 省略 */
binding.answerBtn1.setOnClickListener { checkAnswer(it) }
binding.answerBtn2.setOnClickListener { checkAnswer(it) }
binding.answerBtn3.setOnClickListener { checkAnswer(it) }
binding.answerBtn4.setOnClickListener { checkAnswer(it) }
showNextQuiz()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment