Skip to content

Questionnaire Checkbox view

Pallab edited this page Aug 23, 2021 · 1 revision
Checkbox view in the questionnaire ( pre and post audience ) is composed of an image and label.
Using these mention resource(s) an integration can change the view according to their design spec
  • Checkbox component is composed of the following four style components.

    • NinchatTheme.Questionnaire.Checkbox.Image
    • NinchatTheme.Questionnaire.Checkbox.Image.Selected
    • NinchatTheme.Questionnaire.Checkbox.Label
    • NinchatTheme.Questionnaire.Checkbox.Label.Focused
    • NinchatTheme.Questionnaire.Checkbox.Label.Selected
  • Or we can use part of the style components to change partial view components

    • Text color. An android color resource

      • Checkbox label when not selected

        • ninchat_color_questionnaire_checkbox_label
      • Label is focused

        • ninchat_color_questionnaire_checkbox_label_focused
          
      • When selected

        • NinchatTheme.Questionnaire.Checkbox.Label.Selected
    • Image. It uses a drawable resource as the android:src element

      • Checkbox image when not selected

        • ninchat_chat_checkbox
      • When selected

        ninchat_chat_checkbox_selected
        
    • Label text style. We can also set the label text style to bold or normal by setting the following string resource

      • ninchat_questionnaire_checkbox_label_text_style
        • bold
        • normal ( default value )
Clone this wiki locally