Class MessageListViewStyle
-
- All Implemented Interfaces:
-
io.getstream.chat.android.ui.helper.ViewStyle
public final class MessageListViewStyle implements ViewStyle
Style for MessageListView. Use this class together with TransformStyle.messageListStyleTransformer to change MessageListView styles programmatically.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classMessageListViewStyle.Companion
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MessageListViewStyle(ScrollButtonViewStyle scrollButtonViewStyle, MessageListView.NewMessagesBehaviour scrollButtonBehaviour, MessageListItemStyle itemStyle, GiphyViewHolderStyle giphyViewHolderStyle, MessageViewStyle<AudioRecordPlayerViewStyle> audioRecordPlayerViewStyle, MessageReplyStyle replyMessageStyle, UnreadLabelButtonStyle unreadLabelButtonStyle, Boolean reactionsEnabled, Integer backgroundColor, Integer replyIcon, Boolean replyEnabled, Integer threadReplyIcon, Boolean threadsEnabled, Integer retryIcon, Integer copyIcon, Integer markAsUnreadIcon, Boolean editMessageEnabled, Integer editIcon, Integer flagIcon, Boolean flagEnabled, Integer pinIcon, Integer unpinIcon, Boolean pinMessageEnabled, Integer deleteIcon, Boolean deleteMessageEnabled, Boolean copyTextEnabled, Boolean markAsUnreadEnabled, Boolean retryMessageEnabled, Boolean deleteConfirmationEnabled, Boolean flagMessageConfirmationEnabled, TextStyle messageOptionsText, TextStyle warningMessageOptionsText, Integer messageOptionsBackgroundColor, Integer userReactionsBackgroundColor, TextStyle userReactionsTitleText, Integer optionsOverlayDimColor, TextStyle emptyViewTextStyle, Integer loadingView, Integer messagesStart, Integer threadMessagesStart, Integer messageOptionsUserReactionAlignment, Integer scrollButtonBottomMargin, Integer scrollButtonEndMargin, Boolean disableScrollWhenShowingDialog, Integer optionsOverlayEditReactionsMarginTop, Integer optionsOverlayEditReactionsMarginBottom, Integer optionsOverlayEditReactionsMarginStart, Integer optionsOverlayEditReactionsMarginEnd, Integer optionsOverlayUserReactionsMarginTop, Integer optionsOverlayUserReactionsMarginBottom, Integer optionsOverlayUserReactionsMarginStart, Integer optionsOverlayUserReactionsMarginEnd, Integer optionsOverlayMessageOptionsMarginTop, Integer optionsOverlayMessageOptionsMarginBottom, Integer optionsOverlayMessageOptionsMarginStart, Integer optionsOverlayMessageOptionsMarginEnd, Boolean showReactionsForUnsentMessages, Boolean readCountEnabled)
-
Method Summary
Modifier and Type Method Description final ScrollButtonViewStylegetScrollButtonViewStyle()Style for ScrollButtonView. final MessageListView.NewMessagesBehaviourgetScrollButtonBehaviour()On new messages always scroll to bottom or count new messages. Default - Count messages.
final MessageListItemStylegetItemStyle()Style for message list view holders. final GiphyViewHolderStylegetGiphyViewHolderStyle()Style for GiphyViewHolder. final MessageViewStyle<AudioRecordPlayerViewStyle>getAudioRecordPlayerViewStyle()Style for AudioRecordPlayerViewStyle. final MessageReplyStylegetReplyMessageStyle()Styles messages that are replies. final UnreadLabelButtonStylegetUnreadLabelButtonStyle()final BooleangetReactionsEnabled()Enables/disables reactions feature. final IntegergetBackgroundColor()MessageListView background color. final IntegergetReplyIcon()Icon for reply option. final BooleangetReplyEnabled()Enables/disables reply feature. final IntegergetThreadReplyIcon()Icon for thread option. final BooleangetThreadsEnabled()Enables/disables threads feature. final IntegergetRetryIcon()Icon for retry option. final IntegergetCopyIcon()Icon for copy option. final IntegergetMarkAsUnreadIcon()final BooleangetEditMessageEnabled()Enables/disables edit message feature. final IntegergetEditIcon()Icon for edit message option. final IntegergetFlagIcon()Icon for flag message option. final BooleangetFlagEnabled()Enables/disables "flag message" option. final IntegergetPinIcon()Icon for pin message option. final IntegergetUnpinIcon()Icon for unpin message option. final BooleangetPinMessageEnabled()Enables/disables pin message feature. final IntegergetDeleteIcon()Icon for delete message option. final BooleangetDeleteMessageEnabled()Enables/disables delete message feature. final BooleangetCopyTextEnabled()Enables/disables copy text feature. final BooleangetMarkAsUnreadEnabled()final BooleangetRetryMessageEnabled()Enables/disables retry failed message feature. final BooleangetDeleteConfirmationEnabled()Enables/disables showing confirmation dialog before deleting message. final BooleangetFlagMessageConfirmationEnabled()Enables/disables showing confirmation dialog before flagging message. final TextStylegetMessageOptionsText()Text appearance of message option items. final TextStylegetWarningMessageOptionsText()Text appearance of warning message option items. final IntegergetMessageOptionsBackgroundColor()Background color of message options. final IntegergetUserReactionsBackgroundColor()Background color of user reactions card. final TextStylegetUserReactionsTitleText()Text appearance of of user reactions card title. final IntegergetOptionsOverlayDimColor()Overlay dim color. final TextStylegetEmptyViewTextStyle()Style for the text displayed in the empty view when no data is present. final IntegergetLoadingView()Layout for the loading view. final IntegergetMessagesStart()Messages start at the bottom or top of the screen. final IntegergetThreadMessagesStart()Thread messages start at the bottom or top of the screen. final IntegergetMessageOptionsUserReactionAlignment()Alignment of the message options user reaction bubble. final IntegergetScrollButtonBottomMargin()Defines the bottom margin of the scroll button. final IntegergetScrollButtonEndMargin()Defines the end margin of the scroll button. final BooleangetDisableScrollWhenShowingDialog()Enables/disables scroll while a dialog is shown over the message list. final IntegergetOptionsOverlayEditReactionsMarginTop()Defines the top margin between the edit reactions bubble on the options overlay and the parent. final IntegergetOptionsOverlayEditReactionsMarginBottom()Defines the margin between the selected message and the edit reactions bubble on the options overlay. final IntegergetOptionsOverlayEditReactionsMarginStart()Defines the start margin between the edit reactions bubble on the options overlay and the parent. final IntegergetOptionsOverlayEditReactionsMarginEnd()Defines the end margin between the edit reactions bubble on the options overlay and the parent. final IntegergetOptionsOverlayUserReactionsMarginTop()Defines the margin between the selected message and the user reaction list on the options overlay. final IntegergetOptionsOverlayUserReactionsMarginBottom()Defines the bottom margin between the user reaction list on the options overlay and the parent. final IntegergetOptionsOverlayUserReactionsMarginStart()Defines the start margin between the user reaction list on the options overlay and the parent. final IntegergetOptionsOverlayUserReactionsMarginEnd()Defines the end margin between the user reaction list on the options overlay and the parent. final IntegergetOptionsOverlayMessageOptionsMarginTop()Defines the margin between the selected message and the message option list on the options overlay. final IntegergetOptionsOverlayMessageOptionsMarginBottom()Defines the bottom margin between the message option list on the options overlay and the user reactions view. final IntegergetOptionsOverlayMessageOptionsMarginStart()Defines the start margin between the message option list on the options overlay and the parent. final IntegergetOptionsOverlayMessageOptionsMarginEnd()Defines the end margin between the message option list on the options overlay and the parent. final BooleangetShowReactionsForUnsentMessages()If we need to show the edit reactions bubble for unsent messages on the options overlay. final BooleangetReadCountEnabled()Enables/disables read count. -
-
Constructor Detail
-
MessageListViewStyle
MessageListViewStyle(ScrollButtonViewStyle scrollButtonViewStyle, MessageListView.NewMessagesBehaviour scrollButtonBehaviour, MessageListItemStyle itemStyle, GiphyViewHolderStyle giphyViewHolderStyle, MessageViewStyle<AudioRecordPlayerViewStyle> audioRecordPlayerViewStyle, MessageReplyStyle replyMessageStyle, UnreadLabelButtonStyle unreadLabelButtonStyle, Boolean reactionsEnabled, Integer backgroundColor, Integer replyIcon, Boolean replyEnabled, Integer threadReplyIcon, Boolean threadsEnabled, Integer retryIcon, Integer copyIcon, Integer markAsUnreadIcon, Boolean editMessageEnabled, Integer editIcon, Integer flagIcon, Boolean flagEnabled, Integer pinIcon, Integer unpinIcon, Boolean pinMessageEnabled, Integer deleteIcon, Boolean deleteMessageEnabled, Boolean copyTextEnabled, Boolean markAsUnreadEnabled, Boolean retryMessageEnabled, Boolean deleteConfirmationEnabled, Boolean flagMessageConfirmationEnabled, TextStyle messageOptionsText, TextStyle warningMessageOptionsText, Integer messageOptionsBackgroundColor, Integer userReactionsBackgroundColor, TextStyle userReactionsTitleText, Integer optionsOverlayDimColor, TextStyle emptyViewTextStyle, Integer loadingView, Integer messagesStart, Integer threadMessagesStart, Integer messageOptionsUserReactionAlignment, Integer scrollButtonBottomMargin, Integer scrollButtonEndMargin, Boolean disableScrollWhenShowingDialog, Integer optionsOverlayEditReactionsMarginTop, Integer optionsOverlayEditReactionsMarginBottom, Integer optionsOverlayEditReactionsMarginStart, Integer optionsOverlayEditReactionsMarginEnd, Integer optionsOverlayUserReactionsMarginTop, Integer optionsOverlayUserReactionsMarginBottom, Integer optionsOverlayUserReactionsMarginStart, Integer optionsOverlayUserReactionsMarginEnd, Integer optionsOverlayMessageOptionsMarginTop, Integer optionsOverlayMessageOptionsMarginBottom, Integer optionsOverlayMessageOptionsMarginStart, Integer optionsOverlayMessageOptionsMarginEnd, Boolean showReactionsForUnsentMessages, Boolean readCountEnabled)
-
-
Method Detail
-
getScrollButtonViewStyle
final ScrollButtonViewStyle getScrollButtonViewStyle()
Style for ScrollButtonView.
-
getScrollButtonBehaviour
final MessageListView.NewMessagesBehaviour getScrollButtonBehaviour()
On new messages always scroll to bottom or count new messages. Default - Count messages.
-
getItemStyle
final MessageListItemStyle getItemStyle()
Style for message list view holders.
-
getGiphyViewHolderStyle
final GiphyViewHolderStyle getGiphyViewHolderStyle()
Style for GiphyViewHolder.
-
getAudioRecordPlayerViewStyle
final MessageViewStyle<AudioRecordPlayerViewStyle> getAudioRecordPlayerViewStyle()
Style for AudioRecordPlayerViewStyle.
-
getReplyMessageStyle
final MessageReplyStyle getReplyMessageStyle()
Styles messages that are replies.
-
getUnreadLabelButtonStyle
final UnreadLabelButtonStyle getUnreadLabelButtonStyle()
-
getReactionsEnabled
final Boolean getReactionsEnabled()
Enables/disables reactions feature. Enabled by default.
-
getBackgroundColor
final Integer getBackgroundColor()
MessageListView background color. Default value is R.color.stream_ui_white_snow.
-
getReplyIcon
final Integer getReplyIcon()
Icon for reply option. Default value is R.drawable.stream_ui_ic_arrow_curve_left_grey.
-
getReplyEnabled
final Boolean getReplyEnabled()
Enables/disables reply feature. Enabled by default.
-
getThreadReplyIcon
final Integer getThreadReplyIcon()
Icon for thread option. Default value is R.drawable.stream_ui_ic_thread_reply.
-
getThreadsEnabled
final Boolean getThreadsEnabled()
Enables/disables threads feature. Enabled by default.
-
getRetryIcon
final Integer getRetryIcon()
Icon for retry option. Default value is R.drawable.stream_ui_ic_send.
-
getCopyIcon
final Integer getCopyIcon()
Icon for copy option. Default value is R.drawable.stream_ui_ic_copy.
-
getMarkAsUnreadIcon
final Integer getMarkAsUnreadIcon()
-
getEditMessageEnabled
final Boolean getEditMessageEnabled()
Enables/disables edit message feature. Enabled by default.
-
getEditIcon
final Integer getEditIcon()
Icon for edit message option. Default value is R.drawable.stream_ui_ic_edit.
-
getFlagIcon
final Integer getFlagIcon()
Icon for flag message option. Default value is R.drawable.stream_ui_ic_flag.
-
getFlagEnabled
final Boolean getFlagEnabled()
Enables/disables "flag message" option.
-
getPinIcon
final Integer getPinIcon()
Icon for pin message option. Default value is R.drawable.stream_ui_ic_pin.
-
getUnpinIcon
final Integer getUnpinIcon()
Icon for unpin message option. Default value is R.drawable.stream_ui_ic_unpin.
-
getPinMessageEnabled
final Boolean getPinMessageEnabled()
Enables/disables pin message feature. Disabled by default.
-
getDeleteIcon
final Integer getDeleteIcon()
Icon for delete message option. Default value is R.drawable.stream_ui_ic_delete.
-
getDeleteMessageEnabled
final Boolean getDeleteMessageEnabled()
Enables/disables delete message feature. Enabled by default.
-
getCopyTextEnabled
final Boolean getCopyTextEnabled()
Enables/disables copy text feature. Enabled by default.
-
getMarkAsUnreadEnabled
final Boolean getMarkAsUnreadEnabled()
-
getRetryMessageEnabled
final Boolean getRetryMessageEnabled()
Enables/disables retry failed message feature. Enabled by default.
-
getDeleteConfirmationEnabled
final Boolean getDeleteConfirmationEnabled()
Enables/disables showing confirmation dialog before deleting message. Enabled by default.
-
getFlagMessageConfirmationEnabled
final Boolean getFlagMessageConfirmationEnabled()
Enables/disables showing confirmation dialog before flagging message. Disabled by default.
-
getMessageOptionsText
final TextStyle getMessageOptionsText()
Text appearance of message option items.
-
getWarningMessageOptionsText
final TextStyle getWarningMessageOptionsText()
Text appearance of warning message option items.
-
getMessageOptionsBackgroundColor
final Integer getMessageOptionsBackgroundColor()
Background color of message options. Default value is R.color.stream_ui_white.
-
getUserReactionsBackgroundColor
final Integer getUserReactionsBackgroundColor()
Background color of user reactions card. Default value is R.color.stream_ui_white.
-
getUserReactionsTitleText
final TextStyle getUserReactionsTitleText()
Text appearance of of user reactions card title.
-
getOptionsOverlayDimColor
final Integer getOptionsOverlayDimColor()
Overlay dim color. Default value is R.color.stream_ui_literal_transparent.
-
getEmptyViewTextStyle
final TextStyle getEmptyViewTextStyle()
Style for the text displayed in the empty view when no data is present.
-
getLoadingView
final Integer getLoadingView()
Layout for the loading view. Default value is R.layout.stream_ui_default_loading_view.
-
getMessagesStart
final Integer getMessagesStart()
Messages start at the bottom or top of the screen. Default: bottom.
-
getThreadMessagesStart
final Integer getThreadMessagesStart()
Thread messages start at the bottom or top of the screen. Default: bottom.
-
getMessageOptionsUserReactionAlignment
final Integer getMessageOptionsUserReactionAlignment()
Alignment of the message options user reaction bubble. Default value is MessageOptionsUserReactionAlignment.BY_USER.
-
getScrollButtonBottomMargin
final Integer getScrollButtonBottomMargin()
Defines the bottom margin of the scroll button.
-
getScrollButtonEndMargin
final Integer getScrollButtonEndMargin()
Defines the end margin of the scroll button.
-
getDisableScrollWhenShowingDialog
final Boolean getDisableScrollWhenShowingDialog()
Enables/disables scroll while a dialog is shown over the message list.
-
getOptionsOverlayEditReactionsMarginTop
final Integer getOptionsOverlayEditReactionsMarginTop()
Defines the top margin between the edit reactions bubble on the options overlay and the parent.
-
getOptionsOverlayEditReactionsMarginBottom
final Integer getOptionsOverlayEditReactionsMarginBottom()
Defines the margin between the selected message and the edit reactions bubble on the options overlay.
-
getOptionsOverlayEditReactionsMarginStart
final Integer getOptionsOverlayEditReactionsMarginStart()
Defines the start margin between the edit reactions bubble on the options overlay and the parent.
-
getOptionsOverlayEditReactionsMarginEnd
final Integer getOptionsOverlayEditReactionsMarginEnd()
Defines the end margin between the edit reactions bubble on the options overlay and the parent.
-
getOptionsOverlayUserReactionsMarginTop
final Integer getOptionsOverlayUserReactionsMarginTop()
Defines the margin between the selected message and the user reaction list on the options overlay.
-
getOptionsOverlayUserReactionsMarginBottom
final Integer getOptionsOverlayUserReactionsMarginBottom()
Defines the bottom margin between the user reaction list on the options overlay and the parent.
-
getOptionsOverlayUserReactionsMarginStart
final Integer getOptionsOverlayUserReactionsMarginStart()
Defines the start margin between the user reaction list on the options overlay and the parent.
-
getOptionsOverlayUserReactionsMarginEnd
final Integer getOptionsOverlayUserReactionsMarginEnd()
Defines the end margin between the user reaction list on the options overlay and the parent.
-
getOptionsOverlayMessageOptionsMarginTop
final Integer getOptionsOverlayMessageOptionsMarginTop()
Defines the margin between the selected message and the message option list on the options overlay.
-
getOptionsOverlayMessageOptionsMarginBottom
final Integer getOptionsOverlayMessageOptionsMarginBottom()
Defines the bottom margin between the message option list on the options overlay and the user reactions view.
-
getOptionsOverlayMessageOptionsMarginStart
final Integer getOptionsOverlayMessageOptionsMarginStart()
Defines the start margin between the message option list on the options overlay and the parent.
-
getOptionsOverlayMessageOptionsMarginEnd
final Integer getOptionsOverlayMessageOptionsMarginEnd()
Defines the end margin between the message option list on the options overlay and the parent.
-
getShowReactionsForUnsentMessages
final Boolean getShowReactionsForUnsentMessages()
If we need to show the edit reactions bubble for unsent messages on the options overlay.
-
getReadCountEnabled
final Boolean getReadCountEnabled()
Enables/disables read count. Enabled by default.
-
-
-