Class ScrollButtonViewStyle
-
- All Implemented Interfaces:
-
io.getstream.chat.android.ui.helper.ViewStyle
public final class ScrollButtonViewStyle implements ViewStyle
Style for ScrollButtonView.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanscrollButtonEnabledprivate final BooleanscrollButtonUnreadEnabledprivate final IntegerscrollButtonColorprivate final IntegerscrollButtonRippleColorprivate final IntegerscrollButtonBadgeColorprivate final FloatscrollButtonElevationprivate final DrawablescrollButtonIconprivate final TextStylescrollButtonBadgeTextStyleprivate final DrawablescrollButtonBadgeIconprivate final IntegerscrollButtonBadgeGravityprivate final FloatscrollButtonBadgeElevationprivate final IntegerscrollButtonInternalMargin
-
Constructor Summary
Constructors Constructor Description ScrollButtonViewStyle(Boolean scrollButtonEnabled, Boolean scrollButtonUnreadEnabled, Integer scrollButtonColor, Integer scrollButtonRippleColor, Integer scrollButtonBadgeColor, Float scrollButtonElevation, Drawable scrollButtonIcon, TextStyle scrollButtonBadgeTextStyle, Drawable scrollButtonBadgeIcon, Integer scrollButtonBadgeGravity, Float scrollButtonBadgeElevation, Integer scrollButtonInternalMargin)
-
Method Summary
Modifier and Type Method Description final BooleangetScrollButtonEnabled()Enables/disables view which allows to scroll to the latest messages. final BooleangetScrollButtonUnreadEnabled()Enables/disables unread label. final IntegergetScrollButtonColor()ScrollButtonView background color. final IntegergetScrollButtonRippleColor()ScrollButtonView ripple color. final IntegergetScrollButtonBadgeColor()Unread count label background color. final FloatgetScrollButtonElevation()final DrawablegetScrollButtonIcon()ScrollButtonView icon. final TextStylegetScrollButtonBadgeTextStyle()Text appearance of the unread count label. final DrawablegetScrollButtonBadgeIcon()The icon used for the unread count label. final IntegergetScrollButtonBadgeGravity()The gravity of the unread count label. final FloatgetScrollButtonBadgeElevation()The elevation used for the unread count label. final IntegergetScrollButtonInternalMargin()The internal margins for the scroll button. -
-
Constructor Detail
-
ScrollButtonViewStyle
ScrollButtonViewStyle(Boolean scrollButtonEnabled, Boolean scrollButtonUnreadEnabled, Integer scrollButtonColor, Integer scrollButtonRippleColor, Integer scrollButtonBadgeColor, Float scrollButtonElevation, Drawable scrollButtonIcon, TextStyle scrollButtonBadgeTextStyle, Drawable scrollButtonBadgeIcon, Integer scrollButtonBadgeGravity, Float scrollButtonBadgeElevation, Integer scrollButtonInternalMargin)
-
-
Method Detail
-
getScrollButtonEnabled
final Boolean getScrollButtonEnabled()
Enables/disables view which allows to scroll to the latest messages. Default value is true.
-
getScrollButtonUnreadEnabled
final Boolean getScrollButtonUnreadEnabled()
Enables/disables unread label. Default value is enabled.
-
getScrollButtonColor
final Integer getScrollButtonColor()
ScrollButtonView background color. Default value is R.color.stream_ui_white.
-
getScrollButtonRippleColor
final Integer getScrollButtonRippleColor()
ScrollButtonView ripple color. Default value is R.color.stream_ui_white_smoke.
-
getScrollButtonBadgeColor
final Integer getScrollButtonBadgeColor()
Unread count label background color. Default value is R.color.stream_ui_accent_blue.
-
getScrollButtonElevation
final Float getScrollButtonElevation()
-
getScrollButtonIcon
final Drawable getScrollButtonIcon()
ScrollButtonView icon. Default value is R.drawable.stream_ui_ic_down.
-
getScrollButtonBadgeTextStyle
final TextStyle getScrollButtonBadgeTextStyle()
Text appearance of the unread count label.
-
getScrollButtonBadgeIcon
final Drawable getScrollButtonBadgeIcon()
The icon used for the unread count label. Default value is R.drawable.stream_ui_shape_scroll_button_badge.
-
getScrollButtonBadgeGravity
final Integer getScrollButtonBadgeGravity()
The gravity of the unread count label. Default value is center top.
-
getScrollButtonBadgeElevation
final Float getScrollButtonBadgeElevation()
The elevation used for the unread count label. Default value is MessageListViewStyle.DEFAULT_SCROLL_BUTTON_BADGE_ELEVATION.
-
getScrollButtonInternalMargin
final Integer getScrollButtonInternalMargin()
The internal margins for the scroll button. This affects the distance between the scroll button and the unread count label.
-
-
-
-