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(
    staticArgb: @ColorInt Int,
    @RequiresSchemaVersion(major = 1, minor = 200) dynamicArgb: DynamicBuilders.DynamicColor?
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

DynamicBuilders.DynamicColor?

the dynamic value.

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

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

dynamicArgb

Added in 1.3.0
val dynamicArgbDynamicBuilders.DynamicColor?

the dynamic value. If this value can be resolved, the staticValue won't be used.

staticArgb

Added in 1.3.0
val staticArgbInt

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.