package org.adaptlab.chpir.android.survey.QuestionFragments;

import org.adaptlab.chpir.android.survey.QuestionFragment;

import android.view.ViewGroup;

/*
 * This question type exist only to add text to a screen.
 * 
 * It does not save a response, only displays the text.
 */
public class InstructionsQuestionFragment extends QuestionFragment {

    @Override
    protected void createQuestionComponent(ViewGroup questionComponent) { }

    @Override
    protected String serialize() {
        return "";
    }

    @Override
    protected void deserialize(String responseText) { }

}

@@ -115,16 +115,42 @@
 gment;%0A%0A
+import android.view.View;%0A
 import a
@@ -368,20 +368,17 @@
 ment %7B%0A%0A
-    
+%09
 @Overrid
@@ -371,36 +371,33 @@
 t %7B%0A%0A%09@Override%0A
-    
+%09
 protected void c
@@ -450,23 +450,73 @@
 nent) %7B 
-%7D%0A%0A    
+%0A%09%09questionComponent.setVisibility(View.INVISIBLE);%0A%09%7D%0A%0A%09
 @Overrid
@@ -509,36 +509,33 @@
 %0A%09%7D%0A%0A%09@Override%0A
-    
+%09
 protected String
@@ -553,16 +553,10 @@
 ) %7B%0A
-        
+%09%09
 retu
@@ -566,19 +566,13 @@
 %22%22;%0A
-    %7D%0A%0A    
+%09%7D%0A%0A%09
 @Ove
@@ -581,12 +581,9 @@
 ide%0A
-    
+%09
 prot

make question component invisible for instructions question types