TextImageStyle

open class TextImageStyle(    @StringRes var text: Int? = null,     @DimenRes var textSize: Int = R.dimen.ecc_text_small,     @ColorRes var textColor: Int = R.color.ecc_chat_toolbar,     @DrawableRes var icon: Int? = null,     var drawablePosition: Int? = null,     @ColorRes var backgroundColor: Int? = null,     @ColorRes var tintColor: Int? = null,     @DimenRes var elevation: Int? = null) : Serializable, ComponentStyle

Описывает стиль для TextView с картинками

Parameters

text

текст для TextView (ресурс)

textSize

размер текста (ресурс)

textColor

цвет текста (ресурс)

icon

иконка для TextView (ресурс)

drawablePosition

позиция для иконки (LEFT = 0, TOP = 1, RIGHT = 2, BOTTOM = 3)

backgroundColor

цвет фона для TextView (ресурс)

tintColor

цвет самого TextView (ресурс)

elevation

объем тени под элементом (ресурс)

Constructors

Link copied to clipboard
constructor(    @StringRes text: Int? = null,     @DimenRes textSize: Int = R.dimen.ecc_text_small,     @ColorRes textColor: Int = R.color.ecc_chat_toolbar,     @DrawableRes icon: Int? = null,     drawablePosition: Int? = null,     @ColorRes backgroundColor: Int? = null,     @ColorRes tintColor: Int? = null,     @DimenRes elevation: Int? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var icon: Int?
Link copied to clipboard
var text: Int?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard