HeaderView

class HeaderView(context: Context, attrs: AttributeSet?) : LinearLayout

View for the prefix, question, and hint of a questionnaire item.

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet?)

Functions

Link copied to clipboard
fun bind(questionnaireViewItem: QuestionnaireViewItem)
Link copied to clipboard
fun showErrorText(errorText: String? = null, isErrorTextVisible: Boolean = true)

Shows an error in the header,and widgets could either use this or use another view (i.e. TextInputLayout's error field) to display error.

Link copied to clipboard

Shows R.string.required if Questionnaire.QuestionnaireItemComponent.required is true, or else it shows R.string.optional_helper_text