Search in sources :

Example 1 with INavigationQuestionView

use of org.eyeseetea.malariacare.views.question.INavigationQuestionView in project pictureapp by EyeSeeTea.

the class DynamicTabAdapter method setupNavigationByQuestionView.

private void setupNavigationByQuestionView(View rootView, IQuestionView questionView) {
    if (questionView instanceof INavigationQuestionView) {
        INavigationQuestionView navigationQuestionView = (INavigationQuestionView) questionView;
        CustomTextView textNextButton = (CustomTextView) rootView.findViewById(R.id.next_txt);
        textNextButton.setText(navigationQuestionView.nextText());
        textNextButton.setTextSize(navigationQuestionView.nextTextSize());
    }
}
Also used : INavigationQuestionView(org.eyeseetea.malariacare.views.question.INavigationQuestionView) CustomTextView(org.eyeseetea.sdk.presentation.views.CustomTextView)

Aggregations

INavigationQuestionView (org.eyeseetea.malariacare.views.question.INavigationQuestionView)1 CustomTextView (org.eyeseetea.sdk.presentation.views.CustomTextView)1