Class MessageListHeaderViewStyle
-
- All Implemented Interfaces:
-
io.getstream.chat.android.ui.helper.ViewStyle
public final class MessageListHeaderViewStyle implements ViewStyle
Style for MessageListHeaderView. Use this class together with TransformStyle.messageListHeaderStyleTransformer to change MessageListHeaderView styles programmatically.
-
-
Field Summary
Fields Modifier and Type Field Description private final Integerbackgroundprivate final TextStyletitleTextStyleprivate final TextStyleofflineTextStyleprivate final TextStylesearchingForNetworkTextStyleprivate final TextStyleonlineTextStyleprivate final BooleanshowUserAvatarprivate final DrawablebackButtonIconprivate final BooleanshowBackButtonprivate final BooleanshowBackButtonBadgeprivate final IntegerbackButtonBadgeBackgroundColorprivate final BooleanshowSearchingForNetworkProgressBarprivate final ColorStateListsearchingForNetworkProgressBarTintprivate final DrawableseparatorBackgroundDrawable
-
Constructor Summary
Constructors Constructor Description MessageListHeaderViewStyle(Integer background, TextStyle titleTextStyle, TextStyle offlineTextStyle, TextStyle searchingForNetworkTextStyle, TextStyle onlineTextStyle, Boolean showUserAvatar, Drawable backButtonIcon, Boolean showBackButton, Boolean showBackButtonBadge, Integer backButtonBadgeBackgroundColor, Boolean showSearchingForNetworkProgressBar, ColorStateList searchingForNetworkProgressBarTint, Drawable separatorBackgroundDrawable)
-
Method Summary
Modifier and Type Method Description final IntegergetBackground()final TextStylegetTitleTextStyle()Appearance for title text. final TextStylegetOfflineTextStyle()Appearance for offline text. final TextStylegetSearchingForNetworkTextStyle()Appearance for searching for network text. final TextStylegetOnlineTextStyle()Appearance for online text. final BooleangetShowUserAvatar()Shows/hides user avatar. final DrawablegetBackButtonIcon()Icon for back button. final BooleangetShowBackButton()Shows/hides back button. final BooleangetShowBackButtonBadge()Shows/hides unread badge. final IntegergetBackButtonBadgeBackgroundColor()Unread badge color. final BooleangetShowSearchingForNetworkProgressBar()Shows/hides searching for network progress bar. final ColorStateListgetSearchingForNetworkProgressBarTint()Progress bar tint color. final DrawablegetSeparatorBackgroundDrawable()Background drawable of the separator at the bottom of MessageListHeaderView. -
-
Constructor Detail
-
MessageListHeaderViewStyle
MessageListHeaderViewStyle(Integer background, TextStyle titleTextStyle, TextStyle offlineTextStyle, TextStyle searchingForNetworkTextStyle, TextStyle onlineTextStyle, Boolean showUserAvatar, Drawable backButtonIcon, Boolean showBackButton, Boolean showBackButtonBadge, Integer backButtonBadgeBackgroundColor, Boolean showSearchingForNetworkProgressBar, ColorStateList searchingForNetworkProgressBarTint, Drawable separatorBackgroundDrawable)
-
-
Method Detail
-
getBackground
final Integer getBackground()
-
getTitleTextStyle
final TextStyle getTitleTextStyle()
Appearance for title text.
-
getOfflineTextStyle
final TextStyle getOfflineTextStyle()
Appearance for offline text.
-
getSearchingForNetworkTextStyle
final TextStyle getSearchingForNetworkTextStyle()
Appearance for searching for network text.
-
getOnlineTextStyle
final TextStyle getOnlineTextStyle()
Appearance for online text.
-
getShowUserAvatar
final Boolean getShowUserAvatar()
Shows/hides user avatar. Shown by default.
-
getBackButtonIcon
final Drawable getBackButtonIcon()
Icon for back button. Default value is R.drawable.stream_ui_arrow_left.
-
getShowBackButton
final Boolean getShowBackButton()
Shows/hides back button. Shown by default.
-
getShowBackButtonBadge
final Boolean getShowBackButtonBadge()
Shows/hides unread badge. Hidden by default.
-
getBackButtonBadgeBackgroundColor
final Integer getBackButtonBadgeBackgroundColor()
Unread badge color. Default value is R.color.stream_ui_accent_red.
-
getShowSearchingForNetworkProgressBar
final Boolean getShowSearchingForNetworkProgressBar()
Shows/hides searching for network progress bar. Shown by default.
-
getSearchingForNetworkProgressBarTint
final ColorStateList getSearchingForNetworkProgressBarTint()
Progress bar tint color. Default value is R.color.stream_ui_accent_blue.
-
getSeparatorBackgroundDrawable
final Drawable getSeparatorBackgroundDrawable()
Background drawable of the separator at the bottom of MessageListHeaderView.
-
-
-
-