コード例 #1
0
  @Override
  public void onResume() {
    questionImageTextView.setText(curQuestion.getQuestionText());
    questionImageView.setImageResource(curQuestion.getImageId());

    super.onResume();
  }
コード例 #2
0
  public boolean isAnswerCorrect() {
    String curAnswer = answerEditText.getText().toString();

    return curAnswer.equalsIgnoreCase(curQuestion.getAnswer());
  }