ChannelListViewStyle

data class ChannelListViewStyle(val optionsIcon: Drawable, val deleteIcon: Drawable, val optionsEnabled: Boolean, val deleteEnabled: Boolean, val swipeEnabled: Boolean, @ColorInt val backgroundColor: Int, @ColorInt val backgroundLayoutColor: Int, val channelTitleText: TextStyle, val lastMessageText: TextStyle, val lastMessageDateText: TextStyle, val indicatorSentIcon: Drawable, val indicatorReadIcon: Drawable, val indicatorPendingSyncIcon: Drawable, @ColorInt val foregroundLayoutColor: Int, val unreadMessageCounterText: TextStyle, @ColorInt val unreadMessageCounterBackgroundColor: Int, val mutedChannelIcon: Drawable, val itemSeparator: Drawable, @LayoutRes val loadingView: Int, @LayoutRes val emptyStateView: Int, @LayoutRes val loadingMoreView: Int, @ColorInt val edgeEffectColor: Int?, val showChannelDeliveryStatusIndicator: Boolean, val readCountEnabled: Boolean, @Px val itemHeight: Int, @Px val itemMarginStart: Int, @Px val itemMarginEnd: Int, @Px val itemTitleMarginStart: Int, @Px val itemVerticalSpacerHeight: Int, @Px val itemVerticalSpacerPosition: Float) : ViewStyle

Style for ChannelListView. Use this class together with TransformStyle.channelListStyleTransformer to change ChannelListView styles programmatically.

Constructors

Link copied to clipboard
constructor(optionsIcon: Drawable, deleteIcon: Drawable, optionsEnabled: Boolean, deleteEnabled: Boolean, swipeEnabled: Boolean, @ColorInt backgroundColor: Int, @ColorInt backgroundLayoutColor: Int, channelTitleText: TextStyle, lastMessageText: TextStyle, lastMessageDateText: TextStyle, indicatorSentIcon: Drawable, indicatorReadIcon: Drawable, indicatorPendingSyncIcon: Drawable, @ColorInt foregroundLayoutColor: Int, unreadMessageCounterText: TextStyle, @ColorInt unreadMessageCounterBackgroundColor: Int, mutedChannelIcon: Drawable, itemSeparator: Drawable, @LayoutRes loadingView: Int, @LayoutRes emptyStateView: Int, @LayoutRes loadingMoreView: Int, @ColorInt edgeEffectColor: Int?, showChannelDeliveryStatusIndicator: Boolean, readCountEnabled: Boolean, @Px itemHeight: Int, @Px itemMarginStart: Int, @Px itemMarginEnd: Int, @Px itemTitleMarginStart: Int, @Px itemVerticalSpacerHeight: Int, @Px itemVerticalSpacerPosition: Float)

Properties

Link copied to clipboard
Link copied to clipboard

Background color for ChannelViewHolder. Default value is R.color.stream_ui_white_smoke.

Link copied to clipboard

Appearance for channel's title, displayed in ChannelViewHolder.

Link copied to clipboard

Enables/disables delete channel option. Enabled by default.

Link copied to clipboard

Icon for deleting channel option. Default value is R.drawable.stream_ui_ic_delete.

Link copied to clipboard

Color applied to the ChannelListView edge effect. Pass null if you want to use default android.R.attr.colorEdgeEffect. Default value is null.

Link copied to clipboard
Link copied to clipboard

Foreground color for ChannelViewHolder. Default value is R.color.stream_ui_white_snow.

Link copied to clipboard

Icon for indicating sync pending status in ChannelViewHolder. Default value is R.drawable.stream_ui_ic_clock.

Link copied to clipboard

Icon for indicating message read status in ChannelViewHolder. Default value is R.drawable.stream_ui_ic_check_double.

Link copied to clipboard

Icon for indicating message sent status in ChannelViewHolder. Default value is R.drawable.stream_ui_ic_check_single.

Link copied to clipboard

Height of the channel list item. Default value is R.dimen.stream_ui_channel_list_item_height.

Link copied to clipboard

End margin of the channel list item. Default value is R.dimen.stream_ui_channel_list_item_margin_end.

Link copied to clipboard

Start margin of the channel list item. Default value is R.dimen.stream_ui_channel_list_item_margin_start.

Link copied to clipboard

Items' separator. Default value is R.drawable.stream_ui_divider.

Link copied to clipboard

Start margin of the channel list item title. Default value is R.dimen.stream_ui_channel_list_item_title_margin_start.

Link copied to clipboard

Height of the channel list item vertical spacer. Default value is R.dimen.stream_ui_channel_list_item_vertical_spacer_height.

Link copied to clipboard

Position of the channel list item vertical spacer. Default value is R.dimen.stream_ui_channel_list_item_vertical_spacer_position.

Link copied to clipboard

Appearance for last message date text displayed in ChannelViewHolder.

Link copied to clipboard

Appearance for last message text, displayed in ChannelViewHolder.

Link copied to clipboard
Link copied to clipboard

Loading view. Default value is R.layout.stream_ui_default_loading_view.

Link copied to clipboard

Icon for muted channel, displayed in ChannelViewHolder. Default value is R.drawable.stream_ui_ic_mute_black.

Link copied to clipboard

Enables/disables channel's options. Enabled by default.

Link copied to clipboard

Icon for channel's options. Default value is R.drawable.stream_ui_ic_more.

Link copied to clipboard

Enables/disables read count. Enabled by default.

Link copied to clipboard

Flag if we need to show the delivery indicator or not.

Link copied to clipboard

Enables/disables swipe on channel list item. Enabled by default.

Link copied to clipboard

Background color for message counter, displayed in ChannelViewHolder. Default value is R.color.stream_ui_accent_red.

Link copied to clipboard

Appearance for message counter text, displayed in ChannelViewHolder.