Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete chapter 2 witout challenges,完成第二章,未完成挑战
- Loading branch information
Showing
12 changed files
with
91 additions
and
6 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
GeoQuiz/app/src/main/java/com/kniost/geoquiz/Question.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.kniost.geoquiz; | ||
|
||
public class Question { | ||
|
||
private int mTextResId; | ||
private boolean mAnswerTrue; | ||
|
||
public Question(int textResId, boolean answerTrue) { | ||
mTextResId = textResId; | ||
mAnswerTrue = answerTrue; | ||
} | ||
|
||
public int getTextResId() { | ||
return mTextResId; | ||
} | ||
|
||
public void setTextResId(int textResId) { | ||
mTextResId = textResId; | ||
} | ||
|
||
public boolean isAnswerTrue() { | ||
return mAnswerTrue; | ||
} | ||
|
||
public void setAnswerTrue(boolean answerTrue) { | ||
mAnswerTrue = answerTrue; | ||
} | ||
} |
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
<resources> | ||
<string name="app_name">GeoQuiz</string> | ||
|
||
<string name="question_text"> | ||
Constantinople is the largest city in Turkey. | ||
</string> | ||
<string name="true_button">TRUE</string> | ||
<string name="false_button">False</string> | ||
<string name="next_button">NEXT</string> | ||
<string name="correct_toast">Correct!</string> | ||
<string name="incorrect_toast">Incorrect!</string> | ||
|
||
<string name="question_oceans">The Pacific Ocean is larger than the Atlantic Ocean.</string> | ||
<string name="question_mideast">The Suez Canal connects the Red Sea and the Indian Ocean.</string> | ||
<string name="question_africa">The source of the Nile River is in Egypt.</string> | ||
<string name="question_americas">The Amazon River is the longest river in the Americas</string> | ||
<string name="question_asia">Lake Baikal is the world\'s oldest and deepest freshwater lake.</string> | ||
</resources> |