Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // onClick
- if(answer1.getText() == mAnswer) {
- mScore++;
- score.setText("Punkte: " + mScore);
- answer1.setBackgroundResource(R.color.colorCorrect);
- doDelay();
- fragezaehler.setText(mQuestionNumber + "/" + mQuestionLength);
- updateQuestion(mQuestionNumber++);
- // Delay
- private void doDelay() {
- SystemClock.sleep(3000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement