-
-
Save codeforfun-jp/24ffeb7d369bc6ee32553f99736425ae to your computer and use it in GitHub Desktop.
Android Quiz App Kotlin 4-1
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
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