Text Image Style
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 (ресурс)
text Size
размер текста (ресурс)
text Color
цвет текста (ресурс)
icon
иконка для TextView (ресурс)
drawable Position
позиция для иконки (LEFT = 0, TOP = 1, RIGHT = 2, BOTTOM = 3)
background Color
цвет фона для TextView (ресурс)
tint Color
цвет самого 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)