Class GiphyMediaAttachmentViewStyle
-
- All Implemented Interfaces:
public final class GiphyMediaAttachmentViewStyleSets the style for io.getstream.chat.android.ui.feature.messages.list.adapter.view.internal.GiphyMediaAttachmentView by obtaining styled attributes.
-
-
Field Summary
Fields Modifier and Type Field Description public final static FloatNO_GIVEN_DIMENSION_RATIOpublic final static IntegerNO_GIVEN_HEIGHTpublic final static FloatSQUARE_DIMENSION_RATIOprivate final DrawableprogressIconprivate final DrawablegiphyIconprivate final DrawableplaceholderIconprivate final IntegerimageBackgroundColorprivate final GiphyInfoTypegiphyTypeprivate final ImageView.ScaleTypescaleTypeprivate final GiphySizingModesizingModeprivate final Integerwidthprivate final Integerheightprivate final FloatdimensionRatio
-
Constructor Summary
Constructors Constructor Description GiphyMediaAttachmentViewStyle(Drawable progressIcon, Drawable giphyIcon, Drawable placeholderIcon, Integer imageBackgroundColor, GiphyInfoType giphyType, ImageView.ScaleType scaleType, GiphySizingMode sizingMode, Integer width, Integer height, Float dimensionRatio)
-
Method Summary
Modifier and Type Method Description final DrawablegetProgressIcon()final DrawablegetGiphyIcon()final DrawablegetPlaceholderIcon()final IntegergetImageBackgroundColor()final GiphyInfoTypegetGiphyType()final ImageView.ScaleTypegetScaleType()final GiphySizingModegetSizingMode()final IntegergetWidth()final IntegergetHeight()final FloatgetDimensionRatio()-
-
Constructor Detail
-
GiphyMediaAttachmentViewStyle
GiphyMediaAttachmentViewStyle(Drawable progressIcon, Drawable giphyIcon, Drawable placeholderIcon, Integer imageBackgroundColor, GiphyInfoType giphyType, ImageView.ScaleType scaleType, GiphySizingMode sizingMode, Integer width, Integer height, Float dimensionRatio)
- Parameters:
progressIcon- Displayed while the Giphy is Loading.giphyIcon- Displays the Giphy logo over the Giphy image.placeholderIcon- Displayed while the Giphy is Loading.imageBackgroundColor- Sets the background colour for the Giphy container.giphyType- Sets the Giphy type which directly affects image quality and if the container is resized or not.scaleType- Sets the scaling type for loading the image.sizingMode- Sets the way the Giphy container scales itself, either adaptive or of a fixed size.width- Sets the width of the Giphy container.height- Sets the height of the Giphy container.dimensionRatio- Sets the dimension ratio of the Giphy container.
-
-
Method Detail
-
getProgressIcon
final Drawable getProgressIcon()
-
getGiphyIcon
final Drawable getGiphyIcon()
-
getPlaceholderIcon
final Drawable getPlaceholderIcon()
-
getImageBackgroundColor
final Integer getImageBackgroundColor()
-
getGiphyType
final GiphyInfoType getGiphyType()
-
getScaleType
final ImageView.ScaleType getScaleType()
-
getSizingMode
final GiphySizingMode getSizingMode()
-
getDimensionRatio
final Float getDimensionRatio()
-
-
-
-