MessageListHeaderViewStyle

data class MessageListHeaderViewStyle(@ColorInt val background: Int, val titleTextStyle: TextStyle, val offlineTextStyle: TextStyle, val searchingForNetworkTextStyle: TextStyle, val onlineTextStyle: TextStyle, val showUserAvatar: Boolean, val backButtonIcon: Drawable, val showBackButton: Boolean, val showBackButtonBadge: Boolean, @ColorInt val backButtonBadgeBackgroundColor: Int, val showSearchingForNetworkProgressBar: Boolean, val searchingForNetworkProgressBarTint: ColorStateList, val separatorBackgroundDrawable: Drawable?) : ViewStyle

Style for MessageListHeaderView. Use this class together with TransformStyle.messageListHeaderStyleTransformer to change MessageListHeaderView styles programmatically.

Constructors

Link copied to clipboard
constructor(@ColorInt background: Int, titleTextStyle: TextStyle, offlineTextStyle: TextStyle, searchingForNetworkTextStyle: TextStyle, onlineTextStyle: TextStyle, showUserAvatar: Boolean, backButtonIcon: Drawable, showBackButton: Boolean, showBackButtonBadge: Boolean, @ColorInt backButtonBadgeBackgroundColor: Int, showSearchingForNetworkProgressBar: Boolean, searchingForNetworkProgressBarTint: ColorStateList, separatorBackgroundDrawable: Drawable?)

Properties

Link copied to clipboard

Unread badge color. Default value is R.color.stream_ui_accent_red.

Link copied to clipboard

Icon for back button. Default value is R.drawable.stream_ui_arrow_left.

Link copied to clipboard
Link copied to clipboard

Appearance for offline text.

Link copied to clipboard

Appearance for online text.

Link copied to clipboard
Link copied to clipboard

Appearance for searching for network text.

Link copied to clipboard

Background drawable of the separator at the bottom of MessageListHeaderView.

Link copied to clipboard

Shows/hides back button. Shown by default.

Link copied to clipboard

Shows/hides unread badge. Hidden by default.

Link copied to clipboard

Shows/hides searching for network progress bar. Shown by default.

Link copied to clipboard

Shows/hides user avatar. Shown by default.

Link copied to clipboard

Appearance for title text.