Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
EunoiaC authored May 6, 2021
1 parent 9f29de9 commit 4752a32
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@ Returns an int which is the index of the correct answer (the index starts at 1,
### `isAnswerCorrect()`
Returns a boolean that is true if the selected answer matches the correct answer, and false if it doesn't.

### `setCorrectAnswer(int correctAnswer)`
Sets the correct answer of the question.

# MultipleChoiceQuestions
```xml
<com.aadyad.checkboxquestion.Views.MultipleChoiceQuestion
Expand Down Expand Up @@ -406,6 +409,9 @@ Returns an int which is the index of the correct answer (the index starts at 1,
### `isAnswerCorrect()`
Returns a boolean that is true if the selected answer matches the correct answer, and false if it doesn't.

### `setCorrectAnswer(int correctAnswer)`
Sets the correct answer of the question.

# MultipleAnswerQuestions
```xml
<com.aadyad.checkboxquestion.Views.MultipleAnswerQuestion
Expand Down Expand Up @@ -492,6 +498,15 @@ Returns the TextView which holds the question text.
### `getQuestionNumberTextView()`
Returns the TextView which holds the question number text.

### `getCorrectAnswer()`
Returns an Integer ArrayList which contains the indexes of the correct answers (the index starts at 1, NOT 0).

### `isAnswerCorrect()`
Returns a boolean that is true if the selected answers matches the correct answer, and false if it doesn't.

### `setCorrectAnswer(ArrayList<Integer> correctAnswer)`
Sets the correct answer of the question.

# Questions
Questions are an object that allow you to make a QuestionList full of Multiple Choice Questions.
There are 3 constructors for the Question object, which means there are 2 ways to define your Question object
Expand Down

0 comments on commit 4752a32

Please sign in to comment.