Class MediaAttachmentGridViewStyle
-
- All Implemented Interfaces:
-
io.getstream.chat.android.ui.helper.ViewStyle
public final class MediaAttachmentGridViewStyle implements ViewStyle
Controls the appearance of MediaAttachmentGridView.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanshowUserAvatarsprivate final DrawableplayVideoButtonIconprivate final IntegerplayVideoIconTintprivate final IntegerplayVideoIconBackgroundColorprivate final FloatplayVideoIconCornerRadiusprivate final FloatplayVideoIconElevationprivate final IntegerplayVideoIconPaddingTopprivate final IntegerplayVideoIconPaddingBottomprivate final IntegerplayVideoIconPaddingStartprivate final IntegerplayVideoIconPaddingEndprivate final DrawableimagePlaceholder
-
Constructor Summary
Constructors Constructor Description MediaAttachmentGridViewStyle(Boolean showUserAvatars, Drawable playVideoButtonIcon, Integer playVideoIconTint, Integer playVideoIconBackgroundColor, Float playVideoIconCornerRadius, Float playVideoIconElevation, Integer playVideoIconPaddingTop, Integer playVideoIconPaddingBottom, Integer playVideoIconPaddingStart, Integer playVideoIconPaddingEnd, Drawable imagePlaceholder)
-
Method Summary
Modifier and Type Method Description final BooleangetShowUserAvatars()final DrawablegetPlayVideoButtonIcon()final IntegergetPlayVideoIconTint()final IntegergetPlayVideoIconBackgroundColor()final FloatgetPlayVideoIconCornerRadius()final FloatgetPlayVideoIconElevation()final IntegergetPlayVideoIconPaddingTop()final IntegergetPlayVideoIconPaddingBottom()final IntegergetPlayVideoIconPaddingStart()final IntegergetPlayVideoIconPaddingEnd()final DrawablegetImagePlaceholder()-
-
Constructor Detail
-
MediaAttachmentGridViewStyle
MediaAttachmentGridViewStyle(Boolean showUserAvatars, Drawable playVideoButtonIcon, Integer playVideoIconTint, Integer playVideoIconBackgroundColor, Float playVideoIconCornerRadius, Float playVideoIconElevation, Integer playVideoIconPaddingTop, Integer playVideoIconPaddingBottom, Integer playVideoIconPaddingStart, Integer playVideoIconPaddingEnd, Drawable imagePlaceholder)
- Parameters:
showUserAvatars- Controls whether the avatar of the user who had sent the attachment is displayed over the attachment preview or not.playVideoButtonIcon- The drawable for the play button icon overlaid above video attachments in the media overview segment of the gallery.playVideoIconTint- Tints the icon overlaid on top of video attachment previews in the media overview segment of the gallery.playVideoIconBackgroundColor- The background color of the View containing the play button in the media overview segment of the gallery.playVideoIconCornerRadius- The corner radius of the play button in the media overview segment of the gallery..playVideoIconElevation- The elevation of the play button in the media overview segment of the galleryplayVideoIconPaddingTop- Sets the top padding of the play video icon in the media overview segment of the gallery.playVideoIconPaddingBottom- Sets the bottom padding of the play video icon in the media overview segment of the gallery.playVideoIconPaddingStart- Sets the start padding of the play video icon in the media overview segment of the gallery.playVideoIconPaddingEnd- Sets the end padding of the play video icon in the media overview segment of the gallery.imagePlaceholder- A placeholder drawable used before the image is loaded.
-
-
Method Detail
-
getShowUserAvatars
final Boolean getShowUserAvatars()
-
getPlayVideoButtonIcon
final Drawable getPlayVideoButtonIcon()
-
getPlayVideoIconTint
final Integer getPlayVideoIconTint()
-
getPlayVideoIconBackgroundColor
final Integer getPlayVideoIconBackgroundColor()
-
getPlayVideoIconCornerRadius
final Float getPlayVideoIconCornerRadius()
-
getPlayVideoIconElevation
final Float getPlayVideoIconElevation()
-
getPlayVideoIconPaddingTop
final Integer getPlayVideoIconPaddingTop()
-
getPlayVideoIconPaddingBottom
final Integer getPlayVideoIconPaddingBottom()
-
getPlayVideoIconPaddingStart
final Integer getPlayVideoIconPaddingStart()
-
getPlayVideoIconPaddingEnd
final Integer getPlayVideoIconPaddingEnd()
-
getImagePlaceholder
final Drawable getImagePlaceholder()
-
-
-
-