diff --git a/source-code/app/src/main/java/org/buildmlearn/toolkit/comprehensiontemplate/fragment/QuestionFragment.java b/source-code/app/src/main/java/org/buildmlearn/toolkit/comprehensiontemplate/fragment/QuestionFragment.java index d3a02b7a..d22bd31e 100644 --- a/source-code/app/src/main/java/org/buildmlearn/toolkit/comprehensiontemplate/fragment/QuestionFragment.java +++ b/source-code/app/src/main/java/org/buildmlearn/toolkit/comprehensiontemplate/fragment/QuestionFragment.java @@ -208,6 +208,14 @@ public void onClick(View v) { } }); + rootView.findViewById(R.id.clear).setOnClickListener(new View.OnClickListener() { + + @Override + public void onClick(View v) { + rg.clearCheck(); + } + }); + if (Integer.parseInt(questionId) == 1) { rootView.findViewById(R.id.previous).setVisibility(View.INVISIBLE); diff --git a/source-code/app/src/main/java/org/buildmlearn/toolkit/quiztemplate/fragment/QuestionFragment.java b/source-code/app/src/main/java/org/buildmlearn/toolkit/quiztemplate/fragment/QuestionFragment.java index af7a3d6f..fc2057da 100644 --- a/source-code/app/src/main/java/org/buildmlearn/toolkit/quiztemplate/fragment/QuestionFragment.java +++ b/source-code/app/src/main/java/org/buildmlearn/toolkit/quiztemplate/fragment/QuestionFragment.java @@ -207,6 +207,14 @@ public void onClick(View v) { } }); + rootView.findViewById(R.id.clear).setOnClickListener(new View.OnClickListener() { + + @Override + public void onClick(View v) { + rg.clearCheck(); + } + }); + if (Integer.parseInt(questionId) == 1) { rootView.findViewById(R.id.previous).setVisibility(View.INVISIBLE); diff --git a/source-code/app/src/main/res/layout/comprehension_content_question.xml b/source-code/app/src/main/res/layout/comprehension_content_question.xml index 6a6d89a2..9f5e6324 100644 --- a/source-code/app/src/main/res/layout/comprehension_content_question.xml +++ b/source-code/app/src/main/res/layout/comprehension_content_question.xml @@ -137,6 +137,21 @@ android:text="@string/comprehension_previous" android:textAppearance="?android:textAppearanceSmall" android:textColor="@color/black_secondary_text" /> +