STYLES_ATTR.md

July 11, 2018 ยท View on GitHub

DialogsList xml attributes:

AttributeDescription
dialogTitleTextColorSets dialog title text color
dialogTitleTextSizeSets dialog title text size
dialogTitleTextStyleSets dialog title text style (normal, bold, italic)
dialogUnreadTitleTextColorSets dialog title text color when has unread messages
dialogUnreadTitleTextSizeSets dialog title text size when has unread messages
dialogUnreadTitleTextStyleSets dialog title text style (normal, bold, italic) when has unread messages
dialogMessageTextColorSets dialog last message text color
dialogMessageTextSizeSets dialog last message text size
dialogMessageTextStyleSets dialog last message text style (normal, bold, italic)
dialogUnreadMessageTextColorSets dialog last message text color when has unread messages
dialogUnreadMessageTextSizeSets dialog last message text size when has unread messages
dialogUnreadMessageTextStyleSets dialog last message text style (normal, bold, italic) when has unread messages
dialogDateTextColorSets dialog last message date (time) text color
dialogDateTextSizeSets dialog last message date (time) text size
dialogDateTextStyleSets dialog last message date (time) text style (normal, bold, italic)
dialogUnreadDateTextColorSets dialog last message date (time) text color when has unread messages
dialogUnreadDateTextSizeSets dialog last message date (time) text size when has unread messages
dialogUnreadDateTextStyleSets dialog last message date (time) text style ( normal, bold, italic) when has unread messages
dialogUnreadBubbleEnabledShow/hide(true/false) bubble with unread messages count (default true)
dialogUnreadBubbleTextColorSets bubble with unread messages count text color
dialogUnreadBubbleTextSizeSets bubble with unread messages count text size
dialogUnreadBubbleTextStyleSets bubble with unread messages count text style (normal, bold, italic)
dialogUnreadBubbleBackgroundColorSets background color for bubble with unread messages count
dialogAvatarWidthSets dialog avatar width
dialogAvatarHeightSets dialog avatar height
dialogMessageAvatarEnabledShow/hide (true/false) avatar of last message author. Only for goups chat.
dialogMessageAvatarWidthSets width for avatar of last message author
dialogMessageAvatarHeightSets height for avatar of last message author
dialogDividerEnabledShow/hide (true/false) divider between dialogs items
dialogDividerColorSets color of divider between dialogs items
dialogDividerLeftPaddingSets left padding for divider between dialog items
dialogDividerRightPaddingSets right padding for divider between dialog items
dialogItemBackgroundSets background of dialogs items
dialogItemBackgroundSets background of dialogs items when has unread messages

MessagesList xml attributes:

AttributeDescription
textAutoLinkEnables links highlighting in messages with allowable modes (none, all, email, map, phone, web)
incomingTextLinkColorSets color for incoming links highlight
outcomingTextLinkColorSets color for outcoming links highlight
incomingAvatarWidthSets width of avatar view in incoming message
incomingAvatarHeightSets height of avatar view in incoming message
incomingBubbleDrawableSets custom drawable for incoming message bubble. You can set drawable selector with preseed and selected states
incomingDefaultBubbleColorSets color for default incoming message bubble
incomingDefaultBubblePressedColorSets color for default incoming message bubble on state pressed
incomingDefaultBubbleSelectedColorSets color for default incoming message bubble on state selected
incomingImageOverlayDrawableSets overlay drawable for incoming image message (use it for selector)
incomingDefaultImageOverlayPressedColorSets color for selected state for default outcoming image message overlay
incomingDefaultImageOverlaySelectedColorSets color for selected state for default incoming image message overlay
incomingBubblePaddingLeftSets left padding for incoming message bubble
incomingBubblePaddingRightSets right padding for incoming message bubble
incomingBubblePaddingTopSets top padding for incoming message bubble
incomingBubblePaddingBottomSets bottom padding for incoming message bubble
incomingTextColorSets incoming message text color
incomingTextSizeSets incoming message text size
incomingTextStyleSets incoming message text style (normal, bold, italic)
incomingTimeTextColorSets incoming text message time color
incomingTimeTextSizeSets incoming text message time size
incomingTimeTextStyleSets incoming text message time style (normal, bold, italic)
incomingImageTimeTextColorSets incoming image message time color
incomingImageTimeTextSizeSets incoming image message time size
incomingImageTimeTextStyleSets incoming image message time style (normal, bold, italic)
outcomingBubbleDrawableSets custom drawable for incoming message bubble. You can set drawable selector with pressed and selected states
outcomingDefaultBubbleColorSets color for default outcoming message bubble
outcomingDefaultBubblePressedColorSets color for default outcoming message bubble on state pressed
outcomingDefaultBubbleSelectedColorSets color for default outcoming message bubble on state selected
outcomingImageOverlayDrawableSets overlay drawable for outcoming image message (use it for selector)
outcomingDefaultImageOverlayPressedColorSets color for pressed state for default outcoming image message overlay
outcomingDefaultImageOverlaySelectedColorSets color for selected state for default outcoming image message overlay
outcomingBubblePaddingLeftSets left padding for outcoming message bubble
outcomingBubblePaddingRightSets right padding for outcoming message bubble
outcomingBubblePaddingTopSets top padding for outcoming message bubble
outcomingBubblePaddingBottomSets bottom padding for outcoming message bubble
outcomingTextColorSets outcoming message text color
outcomingTextSizeSets outcoming message text size
outcomingTextStyleSets outcoming message text style (normal, bold, italic)
outcomingTimeTextColorSets outcoming text message time color
outcomingTimeTextSizeSets outcoming text message time size
outcomingTimeTextStyleSets outcoming text message time style (normal, bold, italic)
outcomingImageTimeTextColorSets outcoming image message time color
outcomingImageTimeTextSizeSets outcoming image message time size
outcomingImageTimeTextStyleSets outcoming image message time style (normal, bold, italic)
dateHeaderTextColorSets date header text color
dateHeaderTextSizeSets date header text size
dateHeaderPaddingSets date header view padding
dateHeaderFormatSets java date format for date header
dateHeaderTextStyleSets date text style (normal, bold, italic)

MessageInput xml attributes:

AttributeDescription
inputButtonBackgroundSets background drawable for "submit" button
inputButtonDefaultBgColorSets normal color of default background drawable for "submit" button
inputButtonDefaultBgPressedColorSets pressed color of default background drawable for "submit" button
inputButtonDefaultBgDisabledColorSets disabled color of default background drawable for "submit" button
inputButtonIconSets icon drawable for "submit" button
inputButtonDefaultIconColorSets normal color of default icon for "submit" button
inputButtonDefaultIconPressedColorSets pressed color of default icon for "submit" button
inputButtonDefaultIconDisabledColorSets disabled color of default icon for "submit" button
inputButtonMarginSets margin for "submit" button
inputButtonWidthSets width for "submit" button
inputButtonHeightSets height for "submit" button
showAttachmentButtonShows/hides (true/false) the "attachment" button
attachmentButtonBackgroundSets background drawable for "attachment" button
attachmentButtonDefaultBgColorSets normal color of default background drawable for "submit" button
attachmentButtonDefaultBgPressedColorSets pressed color of default background drawable for "submit" button
attachmentButtonDefaultBgDisabledColorSets disabled color of default background drawable for "submit" button
attachmentButtonIconSets icon drawable for "attachment" button
attachmentButtonDefaultIconColorSets normal color of default icon for "attachment" button
attachmentButtonDefaultIconPressedColorSets pressed color of default icon for "attachment" button
attachmentButtonDefaultIconDisabledColorSets disabled color of default icon for "attachment" button
attachmentButtonMarginSets margin for "attachment" button
attachmentButtonWidthSets width for "attachment" button
attachmentButtonHeightSets height for "attachment" button
inputMaxLinesSets max lines for message input field
inputHintSets hint for message input field
inputTextSets text in message input field
inputTextSizeSets input message text size
inputTextColorSets input message text color
inputHintColorSets text color of hint in message input field
inputBackgroundSets background for input message view
inputCursorDrawableSets cursor drawable for input message EditText
delayTypingStatusSets delay typing for TypingListener