Skip to content

Bot view

Pallab edited this page Aug 23, 2021 · 4 revisions
Ninchat SDK supports bot / questionnaire feature. A bot/questionnaire view contains,
  • bot icon
  • bot name
  • bot writing indicator
  • content(s)
Using these mention resource(s) an integration can change the view according to their design spec
  • Bot view uses image and text view to show bot icon and bot name. It is an android style resource

    • Bot image/icon.
      • NinchatTheme.Questionnaire.BotView
    • Bot name text
      • NinchatTheme.Questionnaire.BotView.Text
  • Or we can use part of the style components to change partial view components

    • Background. Background of bot writing indicator. An Android drawable resource

      • ninchat_questionnaire_bot_view
    • Bot icon. We can pass bot icon URL using site config. The default bot icon is an Android drawable resource

      • ninchat_chat_avatar_left
      • Bot avatar width and height
        • ninchat_chat_activity_avatar_size
    • Bot name

      • Text color. Android color resource

        • ninchat_color_questionnaire_bot_name_text
      • Text Size. Android dimen resource. SDK use 18sp as the default value

        • ninchat_questionnaire_bot_name_text_size

Clone this wiki locally