use of org.eyeseetea.malariacare.layout.listeners.question.QuestionAnswerChangedListener in project pictureapp by EyeSeeTea.
the class DynamicTabAdapter method configureAnswerChangedListener.
private void configureAnswerChangedListener(IQuestionView questionView) {
if (questionView instanceof AKeyboardQuestionView) {
((AKeyboardQuestionView) questionView).setOnAnswerChangedListener(new QuestionAnswerChangedListener(tableLayout, this, !GradleVariantConfig.isButtonNavigationActive()));
} else if (questionView instanceof AOptionQuestionView) {
((AOptionQuestionView) questionView).setOnAnswerChangedListener(new QuestionAnswerChangedListener(tableLayout, this, !GradleVariantConfig.isButtonNavigationActive()));
} else if (questionView instanceof NumberRadioButtonMultiquestionView) {
((NumberRadioButtonMultiquestionView) questionView).setOnAnswerChangedListener(new QuestionAnswerChangedListener(tableLayout, this, !GradleVariantConfig.isButtonNavigationActive()));
((NumberRadioButtonMultiquestionView) questionView).setOnAnswerOptionChangedListener(new QuestionAnswerChangedListener(tableLayout, this, !GradleVariantConfig.isButtonNavigationActive()));
} else if (questionView instanceof DynamicStockImageRadioButtonSingleQuestionView) {
((DynamicStockImageRadioButtonSingleQuestionView) questionView).setOnAnswerChangedListener(new QuestionAnswerChangedListener(tableLayout, this, !GradleVariantConfig.isButtonNavigationActive()));
((DynamicStockImageRadioButtonSingleQuestionView) questionView).setOnAnswerOptionChangedListener(new QuestionAnswerChangedListener(tableLayout, this, !GradleVariantConfig.isButtonNavigationActive()));
}
}
Aggregations