Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Created October 24, 2024 05:23
Show Gist options
  • Save codeforfun-jp/2a285f1bf7a0ffbe5c026ac06ff27d17 to your computer and use it in GitHub Desktop.
Save codeforfun-jp/2a285f1bf7a0ffbe5c026ac06ff27d17 to your computer and use it in GitHub Desktop.
[Kotlin Quiz ver2] 4-1
private fun showNextQuiz() {
// クイズを1問取り出す
val quiz = quizData[0]
// 問題をセット
binding.questionLabel.text = quiz[0]
// 選択肢をセット
binding.answerBtn1.text = quiz[1]
binding.answerBtn2.text = quiz[2]
binding.answerBtn3.text = quiz[3]
binding.answerBtn4.text = quiz[4]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment