LayoutColor
class LayoutColor
Static or dynamic color value for layout fields.
This can be used on layout color fields with data binding support.
Summary
Public constructors |
|---|
LayoutColor( |
Public properties |
|
|---|---|
DynamicBuilders.DynamicColor? |
@RequiresSchemaVersion(major = 1, minor = 200)the dynamic value. |
@ColorInt Int |
is the static color value in ARGB. |
Public constructors
LayoutColor
Added in 1.3.0
LayoutColor(
staticArgb: @ColorInt Int,
@RequiresSchemaVersion(major = 1, minor = 200) dynamicArgb: DynamicBuilders.DynamicColor? = null
)
Public functions
Public properties
dynamicArgb
Added in 1.3.0
@RequiresSchemaVersion(major = 1, minor = 200)
val dynamicArgb: DynamicBuilders.DynamicColor?
the dynamic value. If this value can be resolved, the staticValue won't be used.
staticArgb
Added in 1.3.0
val staticArgb: @ColorInt Int
is the static color value in ARGB. If dynamicArgb is not null this will be used as the default value for when dynamicArgb can't be resolved.