ScrollButtonViewStyle

data class ScrollButtonViewStyle(val scrollButtonEnabled: Boolean, val scrollButtonUnreadEnabled: Boolean, @ColorInt val scrollButtonColor: Int, @ColorInt val scrollButtonRippleColor: Int, @ColorInt val scrollButtonBadgeColor: Int?, val scrollButtonElevation: Float, val scrollButtonIcon: Drawable?, val scrollButtonBadgeTextStyle: TextStyle, val scrollButtonBadgeIcon: Drawable?, val scrollButtonBadgeGravity: Int, val scrollButtonBadgeElevation: Float, val scrollButtonInternalMargin: Int) : ViewStyle

Style for ScrollButtonView.

Constructors

Link copied to clipboard
constructor(scrollButtonEnabled: Boolean, scrollButtonUnreadEnabled: Boolean, @ColorInt scrollButtonColor: Int, @ColorInt scrollButtonRippleColor: Int, @ColorInt scrollButtonBadgeColor: Int?, scrollButtonElevation: Float, scrollButtonIcon: Drawable?, scrollButtonBadgeTextStyle: TextStyle, scrollButtonBadgeIcon: Drawable?, scrollButtonBadgeGravity: Int, scrollButtonBadgeElevation: Float, scrollButtonInternalMargin: Int)

Properties

Link copied to clipboard

Unread count label background color. Default value is R.color.stream_ui_accent_blue.

Link copied to clipboard

The elevation used for the unread count label. Default value is MessageListViewStyle.DEFAULT_SCROLL_BUTTON_BADGE_ELEVATION.

Link copied to clipboard

The gravity of the unread count label. Default value is center top.

Link copied to clipboard

The icon used for the unread count label. Default value is R.drawable.stream_ui_shape_scroll_button_badge.

Link copied to clipboard

Text appearance of the unread count label.

Link copied to clipboard

ScrollButtonView background color. Default value is R.color.stream_ui_white.

Link copied to clipboard
Link copied to clipboard

Enables/disables view which allows to scroll to the latest messages. Default value is true.

Link copied to clipboard

ScrollButtonView icon. Default value is R.drawable.stream_ui_ic_down.

Link copied to clipboard

The internal margins for the scroll button. This affects the distance between the scroll button and the unread count label.

Link copied to clipboard

ScrollButtonView ripple color. Default value is R.color.stream_ui_white_smoke.

Link copied to clipboard

Enables/disables unread label. Default value is enabled.