-
-
Save codeforfun-jp/6b368cfa0b2829d09fd5a8b82f5275b2 to your computer and use it in GitHub Desktop.
[Java Quiz ver2] 7-2
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 | |
public void onClick(View v) { | |
/* 省略 */ | |
new MaterialAlertDialogBuilder(this) | |
.setTitle(alertTitle) | |
.setMessage("答え : " + rightAnswer) | |
.setPositiveButton("OK", new DialogInterface.OnClickListener() { | |
@Override | |
public void onClick(DialogInterface dialog, int which) { | |
if (quizCount == QUIZ_COUNT) { | |
// 結果画面へ移動 | |
Intent intent = new Intent(MainActivity.this, ResultActivity.class); | |
intent.putExtra("RIGHT_ANSWER_COUNT", rightAnswerCount); | |
startActivity(intent); | |
} else { | |
quizCount++; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment