Skip to content

Chat input command view

Pallab Gain edited this page Feb 28, 2024 · 8 revisions
Ninchat command view or chat input view is where the user will write their chat messages. Using these mention resource(s), an integration can change the view according to their design spec
  • Chat input/command view is using the following style. We can extend or override the following style component and have our custom view. It is an android style resource
    • NinchatTheme.Backlog.CommandView
  • Or we can use part of the style components to change partial view components
    • Background. Android drawable resource
      • ninchat_chat_command_input_text
      • Background color. Android color resource
        • ninchat_color_chat_command_input_background
      • Border color. Android color resource
        • ninchat_color_chat_command_input_border
    • Chat input divider. Android drawable resource. Default is transparent
      • ninchat_chat_command_input_divider
    • Input text color. Android color resource
      • ninchat_color_chat_command_input_text
    • Placeholder text color. Android color resource
      • ninchat_color_chat_command_input_text_placeholder
    • Divider text color. Android color resource
      • ninchat_color_chat_command_input_divider
    • Placeholder text. Ninchat SDK uses a default placeholder. If we want to override the placeholder text we can also do it by overriding the following resources. Android string resource
      • ninchat_chat_command_input_text_placeholder_string
    • Chat Text AutoLink. Ninchat SDK provides automatic linking functionality for various types of content to enhance user interaction within chat texts. It supports web, email, phone, map, none and all. We can enable multiple content by separating them with a |. For example, web|email will enable autolink for web and email We can modify them by following resources. Android string resource
      • ninchat_autolink_attributes. ( default: all )
Clone this wiki locally