Skip to content

Meta message

Pallab edited this page Sep 23, 2021 · 4 revisions
Ninchat SDK shows meta or info messages in the different use cases. For example, when a chat starts or ends it shows info/meta messages. Using these mention resource(s), an integration can change the view according to their design spec
  • Meta uses a background style and text info style component. It is an android style resource
    • Background of the meta messages.
      • NinchatTheme.Backlog.Info
    • Text and icon style of the meta messages
      • NinchatTheme.Backlog.Info.Text
  • Or we can use part of the style components to change partial view components
    • Background of the info message component. Android drawable resource
      • ninchat_chat_info
      • Border color. Android color resource
        • ninchat_color_chat_info_border
    • Text color. Android color resource
      • ninchat_color_info_text
    • Message icon. Android drawable resource
      • ninchat_icon_chat_info_icon
    • Position of the meta message. Ninchat SDK places the meta message at the centre by default. Android string resource
      • ninchat_chat_info_text_align
        • You can use it to set the alignment of the meta message(s). For example, we can put ninchat_chat_info_text_align value to start, and the icon and text will be then align to start
Clone this wiki locally