Class ChannelListViewStyle
-
- All Implemented Interfaces:
-
io.getstream.chat.android.ui.helper.ViewStyle
public final class ChannelListViewStyle implements ViewStyle
Style for ChannelListView. Use this class together with TransformStyle.channelListStyleTransformer to change ChannelListView styles programmatically.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ChannelListViewStyle(Drawable optionsIcon, Drawable deleteIcon, Boolean optionsEnabled, Boolean deleteEnabled, Boolean swipeEnabled, Integer backgroundColor, Integer backgroundLayoutColor, TextStyle channelTitleText, TextStyle lastMessageText, TextStyle lastMessageDateText, Drawable indicatorSentIcon, Drawable indicatorReadIcon, Drawable indicatorPendingSyncIcon, Integer foregroundLayoutColor, TextStyle unreadMessageCounterText, Integer unreadMessageCounterBackgroundColor, Drawable mutedChannelIcon, Drawable itemSeparator, Integer loadingView, Integer emptyStateView, Integer loadingMoreView, Integer edgeEffectColor, Boolean showChannelDeliveryStatusIndicator, Boolean readCountEnabled, Integer itemHeight, Integer itemMarginStart, Integer itemMarginEnd, Integer itemTitleMarginStart, Integer itemVerticalSpacerHeight, Float itemVerticalSpacerPosition)
-
Method Summary
Modifier and Type Method Description final DrawablegetOptionsIcon()Icon for channel's options. final DrawablegetDeleteIcon()Icon for deleting channel option. final BooleangetOptionsEnabled()Enables/disables channel's options. final BooleangetDeleteEnabled()Enables/disables delete channel option. final BooleangetSwipeEnabled()Enables/disables swipe on channel list item. final IntegergetBackgroundColor()final IntegergetBackgroundLayoutColor()Background color for ChannelViewHolder. final TextStylegetChannelTitleText()Appearance for channel's title, displayed in ChannelViewHolder. final TextStylegetLastMessageText()Appearance for last message text, displayed in ChannelViewHolder. final TextStylegetLastMessageDateText()Appearance for last message date text displayed in ChannelViewHolder. final DrawablegetIndicatorSentIcon()Icon for indicating message sent status in ChannelViewHolder. final DrawablegetIndicatorReadIcon()Icon for indicating message read status in ChannelViewHolder. final DrawablegetIndicatorPendingSyncIcon()Icon for indicating sync pending status in ChannelViewHolder. final IntegergetForegroundLayoutColor()Foreground color for ChannelViewHolder. final TextStylegetUnreadMessageCounterText()Appearance for message counter text, displayed in ChannelViewHolder. final IntegergetUnreadMessageCounterBackgroundColor()Background color for message counter, displayed in ChannelViewHolder. final DrawablegetMutedChannelIcon()Icon for muted channel, displayed in ChannelViewHolder. final DrawablegetItemSeparator()Items' separator. final IntegergetLoadingView()Loading view. final IntegergetEmptyStateView()Empty state view. final IntegergetLoadingMoreView()Loading more view. final IntegergetEdgeEffectColor()Color applied to the ChannelListView edge effect. final BooleangetShowChannelDeliveryStatusIndicator()Flag if we need to show the delivery indicator or not. final BooleangetReadCountEnabled()Enables/disables read count. final IntegergetItemHeight()Height of the channel list item. final IntegergetItemMarginStart()Start margin of the channel list item. final IntegergetItemMarginEnd()End margin of the channel list item. final IntegergetItemTitleMarginStart()Start margin of the channel list item title. final IntegergetItemVerticalSpacerHeight()Height of the channel list item vertical spacer. final FloatgetItemVerticalSpacerPosition()Position of the channel list item vertical spacer. -
-
Constructor Detail
-
ChannelListViewStyle
ChannelListViewStyle(Drawable optionsIcon, Drawable deleteIcon, Boolean optionsEnabled, Boolean deleteEnabled, Boolean swipeEnabled, Integer backgroundColor, Integer backgroundLayoutColor, TextStyle channelTitleText, TextStyle lastMessageText, TextStyle lastMessageDateText, Drawable indicatorSentIcon, Drawable indicatorReadIcon, Drawable indicatorPendingSyncIcon, Integer foregroundLayoutColor, TextStyle unreadMessageCounterText, Integer unreadMessageCounterBackgroundColor, Drawable mutedChannelIcon, Drawable itemSeparator, Integer loadingView, Integer emptyStateView, Integer loadingMoreView, Integer edgeEffectColor, Boolean showChannelDeliveryStatusIndicator, Boolean readCountEnabled, Integer itemHeight, Integer itemMarginStart, Integer itemMarginEnd, Integer itemTitleMarginStart, Integer itemVerticalSpacerHeight, Float itemVerticalSpacerPosition)
-
-
Method Detail
-
getOptionsIcon
final Drawable getOptionsIcon()
Icon for channel's options. Default value is R.drawable.stream_ui_ic_more.
-
getDeleteIcon
final Drawable getDeleteIcon()
Icon for deleting channel option. Default value is R.drawable.stream_ui_ic_delete.
-
getOptionsEnabled
final Boolean getOptionsEnabled()
Enables/disables channel's options. Enabled by default.
-
getDeleteEnabled
final Boolean getDeleteEnabled()
Enables/disables delete channel option. Enabled by default.
-
getSwipeEnabled
final Boolean getSwipeEnabled()
Enables/disables swipe on channel list item. Enabled by default.
-
getBackgroundColor
final Integer getBackgroundColor()
-
getBackgroundLayoutColor
final Integer getBackgroundLayoutColor()
Background color for ChannelViewHolder. Default value is R.color.stream_ui_white_smoke.
-
getChannelTitleText
final TextStyle getChannelTitleText()
Appearance for channel's title, displayed in ChannelViewHolder.
-
getLastMessageText
final TextStyle getLastMessageText()
Appearance for last message text, displayed in ChannelViewHolder.
-
getLastMessageDateText
final TextStyle getLastMessageDateText()
Appearance for last message date text displayed in ChannelViewHolder.
-
getIndicatorSentIcon
final Drawable getIndicatorSentIcon()
Icon for indicating message sent status in ChannelViewHolder. Default value is R.drawable.stream_ui_ic_check_single.
-
getIndicatorReadIcon
final Drawable getIndicatorReadIcon()
Icon for indicating message read status in ChannelViewHolder. Default value is R.drawable.stream_ui_ic_check_double.
-
getIndicatorPendingSyncIcon
final Drawable getIndicatorPendingSyncIcon()
Icon for indicating sync pending status in ChannelViewHolder. Default value is R.drawable.stream_ui_ic_clock.
-
getForegroundLayoutColor
final Integer getForegroundLayoutColor()
Foreground color for ChannelViewHolder. Default value is R.color.stream_ui_white_snow.
-
getUnreadMessageCounterText
final TextStyle getUnreadMessageCounterText()
Appearance for message counter text, displayed in ChannelViewHolder.
-
getUnreadMessageCounterBackgroundColor
final Integer getUnreadMessageCounterBackgroundColor()
Background color for message counter, displayed in ChannelViewHolder. Default value is R.color.stream_ui_accent_red.
-
getMutedChannelIcon
final Drawable getMutedChannelIcon()
Icon for muted channel, displayed in ChannelViewHolder. Default value is R.drawable.stream_ui_ic_mute_black.
-
getItemSeparator
final Drawable getItemSeparator()
Items' separator. Default value is R.drawable.stream_ui_divider.
-
getLoadingView
final Integer getLoadingView()
Loading view. Default value is R.layout.stream_ui_default_loading_view.
-
getEmptyStateView
final Integer getEmptyStateView()
Empty state view. Default value is R.layout.stream_ui_channel_list_empty_state_view.
-
getLoadingMoreView
final Integer getLoadingMoreView()
Loading more view. Default value is R.layout.stream_ui_channel_list_loading_more_view.
-
getEdgeEffectColor
final Integer getEdgeEffectColor()
Color applied to the ChannelListView edge effect. Pass null if you want to use default android.R.attr.colorEdgeEffect. Default value is null.
-
getShowChannelDeliveryStatusIndicator
final Boolean getShowChannelDeliveryStatusIndicator()
Flag if we need to show the delivery indicator or not.
-
getReadCountEnabled
final Boolean getReadCountEnabled()
Enables/disables read count. Enabled by default.
-
getItemHeight
final Integer getItemHeight()
Height of the channel list item. Default value is R.dimen.stream_ui_channel_list_item_height.
-
getItemMarginStart
final Integer getItemMarginStart()
Start margin of the channel list item. Default value is R.dimen.stream_ui_channel_list_item_margin_start.
-
getItemMarginEnd
final Integer getItemMarginEnd()
End margin of the channel list item. Default value is R.dimen.stream_ui_channel_list_item_margin_end.
-
getItemTitleMarginStart
final Integer getItemTitleMarginStart()
Start margin of the channel list item title. Default value is R.dimen.stream_ui_channel_list_item_title_margin_start.
-
getItemVerticalSpacerHeight
final Integer getItemVerticalSpacerHeight()
Height of the channel list item vertical spacer. Default value is R.dimen.stream_ui_channel_list_item_vertical_spacer_height.
-
getItemVerticalSpacerPosition
final Float getItemVerticalSpacerPosition()
Position of the channel list item vertical spacer. Default value is R.dimen.stream_ui_channel_list_item_vertical_spacer_position.
-
-
-
-