MediaAttachmentGridViewStyle

data class MediaAttachmentGridViewStyle(val showUserAvatars: Boolean, val playVideoButtonIcon: Drawable?, @ColorInt val playVideoIconTint: Int?, @ColorInt val playVideoIconBackgroundColor: Int, val playVideoIconCornerRadius: Float, val playVideoIconElevation: Float, val playVideoIconPaddingTop: Int, val playVideoIconPaddingBottom: Int, val playVideoIconPaddingStart: Int, val playVideoIconPaddingEnd: Int, val imagePlaceholder: Drawable?) : ViewStyle

Controls the appearance of MediaAttachmentGridView.

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 gallery

playVideoIconPaddingTop

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.

Constructors

Link copied to clipboard
constructor(showUserAvatars: Boolean, playVideoButtonIcon: Drawable?, @ColorInt playVideoIconTint: Int?, @ColorInt playVideoIconBackgroundColor: Int, playVideoIconCornerRadius: Float, playVideoIconElevation: Float, playVideoIconPaddingTop: Int, playVideoIconPaddingBottom: Int, playVideoIconPaddingStart: Int, playVideoIconPaddingEnd: Int, imagePlaceholder: Drawable?)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard