Class MediaAttachmentViewStyle
-
- All Implemented Interfaces:
-
io.getstream.chat.android.ui.helper.ViewStyle
public final class MediaAttachmentViewStyle implements ViewStyle
Style for MediaAttachmentView. Use this class together with TransformStyle.mediaAttachmentStyleTransformer to change styles programmatically.
-
-
Field Summary
Fields Modifier and Type Field Description private final DrawableprogressIconprivate final DrawableplaceholderIconprivate final IntegerplaceholderIconTintprivate final IntegermediaPreviewBackgroundColorprivate final IntegermoreCountOverlayColorprivate final TextStylemoreCountTextStyleprivate final DrawableplayVideoIconprivate final IntegerplayVideoIconTintprivate final IntegerplayVideoIconBackgroundColorprivate final FloatplayVideoIconElevationprivate final IntegerplayVideoIconPaddingTopprivate final IntegerplayVideoIconPaddingBottomprivate final IntegerplayVideoIconPaddingStartprivate final IntegerplayVideoIconPaddingEndprivate final FloatplayVideoIconCornerRadius
-
Constructor Summary
Constructors Constructor Description MediaAttachmentViewStyle(Drawable progressIcon, Drawable placeholderIcon, Integer placeholderIconTint, Integer mediaPreviewBackgroundColor, Integer moreCountOverlayColor, TextStyle moreCountTextStyle, Drawable playVideoIcon, Integer playVideoIconTint, Integer playVideoIconBackgroundColor, Float playVideoIconElevation, Integer playVideoIconPaddingTop, Integer playVideoIconPaddingBottom, Integer playVideoIconPaddingStart, Integer playVideoIconPaddingEnd, Float playVideoIconCornerRadius)
-
Method Summary
Modifier and Type Method Description final DrawablegetProgressIcon()final DrawablegetPlaceholderIcon()final IntegergetPlaceholderIconTint()final IntegergetMediaPreviewBackgroundColor()final IntegergetMoreCountOverlayColor()final TextStylegetMoreCountTextStyle()final DrawablegetPlayVideoIcon()final IntegergetPlayVideoIconTint()final IntegergetPlayVideoIconBackgroundColor()final FloatgetPlayVideoIconElevation()final IntegergetPlayVideoIconPaddingTop()final IntegergetPlayVideoIconPaddingBottom()final IntegergetPlayVideoIconPaddingStart()final IntegergetPlayVideoIconPaddingEnd()final FloatgetPlayVideoIconCornerRadius()-
-
Constructor Detail
-
MediaAttachmentViewStyle
MediaAttachmentViewStyle(Drawable progressIcon, Drawable placeholderIcon, Integer placeholderIconTint, Integer mediaPreviewBackgroundColor, Integer moreCountOverlayColor, TextStyle moreCountTextStyle, Drawable playVideoIcon, Integer playVideoIconTint, Integer playVideoIconBackgroundColor, Float playVideoIconElevation, Integer playVideoIconPaddingTop, Integer playVideoIconPaddingBottom, Integer playVideoIconPaddingStart, Integer playVideoIconPaddingEnd, Float playVideoIconCornerRadius)
- Parameters:
progressIcon- Animated progress drawable.placeholderIcon- Displayed while the media preview is Loading.placeholderIconTint- The tint applied to the placeholder icon displayed before a media attachment preview was loaded or after loading had failed.mediaPreviewBackgroundColor- Controls the background color of image and video attachment previews.moreCountOverlayColor- More count semi-transparent overlay color.moreCountTextStyle- Appearance for "more count" text.playVideoIcon- The icon overlaid above previews of video attachments.playVideoIconTint- The tint of the play video icon.playVideoIconBackgroundColor- Applies a background colour to the View hosting the play video icon.playVideoIconElevation- Determines the elevation of the play video button.playVideoIconPaddingTop- Determines the padding set between the top of the play video icon and its parent.playVideoIconPaddingBottom- Determines the padding set between the bottom of the play video icon and its parent.playVideoIconPaddingStart- Determines the padding set between the start of the play video icon and its parent.playVideoIconPaddingEnd- Determines the padding set between the end of the play video icon and its parent.playVideoIconCornerRadius- Determines the corner radius of the play video icon.
-
-
Method Detail
-
getProgressIcon
final Drawable getProgressIcon()
-
getPlaceholderIcon
final Drawable getPlaceholderIcon()
-
getPlaceholderIconTint
final Integer getPlaceholderIconTint()
-
getMediaPreviewBackgroundColor
final Integer getMediaPreviewBackgroundColor()
-
getMoreCountOverlayColor
final Integer getMoreCountOverlayColor()
-
getMoreCountTextStyle
final TextStyle getMoreCountTextStyle()
-
getPlayVideoIcon
final Drawable getPlayVideoIcon()
-
getPlayVideoIconTint
final Integer getPlayVideoIconTint()
-
getPlayVideoIconBackgroundColor
final Integer getPlayVideoIconBackgroundColor()
-
getPlayVideoIconElevation
final Float getPlayVideoIconElevation()
-
getPlayVideoIconPaddingTop
final Integer getPlayVideoIconPaddingTop()
-
getPlayVideoIconPaddingBottom
final Integer getPlayVideoIconPaddingBottom()
-
getPlayVideoIconPaddingStart
final Integer getPlayVideoIconPaddingStart()
-
getPlayVideoIconPaddingEnd
final Integer getPlayVideoIconPaddingEnd()
-
getPlayVideoIconCornerRadius
final Float getPlayVideoIconCornerRadius()
-
-
-
-