Class MessageReplyStyle
-
- All Implemented Interfaces:
-
io.getstream.chat.android.ui.helper.ViewStyle
public final class MessageReplyStyle implements ViewStyle
Style for view holders used inside MessageListView allowing to customize message "reply" view. Use this class together with TransformStyle.messageReplyStyleTransformer to change styles programmatically.
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegermessageBackgroundColorMineprivate final IntegermessageBackgroundColorTheirsprivate final IntegerlinkBackgroundColorMineprivate final IntegerlinkBackgroundColorTheirsprivate final TextStyletextStyleMineprivate final TextStyletextStyleTheirsprivate final TextStylelinkStyleMineprivate final TextStylelinkStyleTheirsprivate final IntegermessageStrokeColorMineprivate final FloatmessageStrokeWidthMineprivate final IntegermessageStrokeColorTheirsprivate final FloatmessageStrokeWidthTheirs
-
Constructor Summary
Constructors Constructor Description MessageReplyStyle(Integer messageBackgroundColorMine, Integer messageBackgroundColorTheirs, Integer linkBackgroundColorMine, Integer linkBackgroundColorTheirs, TextStyle textStyleMine, TextStyle textStyleTheirs, TextStyle linkStyleMine, TextStyle linkStyleTheirs, Integer messageStrokeColorMine, Float messageStrokeWidthMine, Integer messageStrokeColorTheirs, Float messageStrokeWidthTheirs)
-
Method Summary
Modifier and Type Method Description final IntegergetMessageBackgroundColorMine()Background color for message sent by the current user. final IntegergetMessageBackgroundColorTheirs()Background color for message sent by other user. final IntegergetLinkBackgroundColorMine()Background color of links in the message sent by the current user. final IntegergetLinkBackgroundColorTheirs()Background color of links in the message sent by the other user. final TextStylegetTextStyleMine()Appearance for message text sent by the current user. final TextStylegetTextStyleTheirs()Appearance for message text sent by other users. final TextStylegetLinkStyleMine()Appearance for message link sent by the current user. final TextStylegetLinkStyleTheirs()Appearance for message link sent by other users. final IntegergetMessageStrokeColorMine()Stroke color for message sent by the current user. final FloatgetMessageStrokeWidthMine()Stroke width for message sent by the current user. final IntegergetMessageStrokeColorTheirs()Stroke color for message sent by other user. final FloatgetMessageStrokeWidthTheirs()Stroke width for message sent by other user. -
-
Constructor Detail
-
MessageReplyStyle
MessageReplyStyle(Integer messageBackgroundColorMine, Integer messageBackgroundColorTheirs, Integer linkBackgroundColorMine, Integer linkBackgroundColorTheirs, TextStyle textStyleMine, TextStyle textStyleTheirs, TextStyle linkStyleMine, TextStyle linkStyleTheirs, Integer messageStrokeColorMine, Float messageStrokeWidthMine, Integer messageStrokeColorTheirs, Float messageStrokeWidthTheirs)
-
-
Method Detail
-
getMessageBackgroundColorMine
final Integer getMessageBackgroundColorMine()
Background color for message sent by the current user. Default value is R.color.stream_ui_grey_gainsboro.
-
getMessageBackgroundColorTheirs
final Integer getMessageBackgroundColorTheirs()
Background color for message sent by other user. Default value is R.color.stream_ui_white.
-
getLinkBackgroundColorMine
final Integer getLinkBackgroundColorMine()
Background color of links in the message sent by the current user.
-
getLinkBackgroundColorTheirs
final Integer getLinkBackgroundColorTheirs()
Background color of links in the message sent by the other user.
-
getTextStyleMine
final TextStyle getTextStyleMine()
Appearance for message text sent by the current user.
-
getTextStyleTheirs
final TextStyle getTextStyleTheirs()
Appearance for message text sent by other users.
-
getLinkStyleMine
final TextStyle getLinkStyleMine()
Appearance for message link sent by the current user.
-
getLinkStyleTheirs
final TextStyle getLinkStyleTheirs()
Appearance for message link sent by other users.
-
getMessageStrokeColorMine
final Integer getMessageStrokeColorMine()
Stroke color for message sent by the current user. Default value is MESSAGE_STROKE_COLOR_MINE.
-
getMessageStrokeWidthMine
final Float getMessageStrokeWidthMine()
Stroke width for message sent by the current user. Default value is MESSAGE_STROKE_WIDTH_MINE.
-
getMessageStrokeColorTheirs
final Integer getMessageStrokeColorTheirs()
Stroke color for message sent by other user. Default value is MESSAGE_STROKE_COLOR_THEIRS.
-
getMessageStrokeWidthTheirs
final Float getMessageStrokeWidthTheirs()
Stroke width for message sent by other user. Default value is MESSAGE_STROKE_WIDTH_THEIRS.
-
-
-
-