LayoutColor
public final 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 methods |
|
|---|---|
boolean |
|
final DynamicBuilders.DynamicColor |
the dynamic value. |
final int |
is the static color value in ARGB. |
int |
hashCode() |
@NonNull String |
toString() |
Public constructors
LayoutColor
Added in 1.3.0
public LayoutColor(
@ColorInt int staticArgb,
@RequiresSchemaVersion(major = 1, minor = 200) DynamicBuilders.DynamicColor dynamicArgb
)
Public methods
getDynamicArgb
Added in 1.3.0
public final DynamicBuilders.DynamicColor getDynamicArgb()
the dynamic value. If this value can be resolved, the staticValue won't be used.
getStaticArgb
Added in 1.3.0
public final int getStaticArgb()
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.