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

Public methods

boolean
equals(Object other)
final DynamicBuilders.DynamicColor

the dynamic value.

final int

is the static color value in ARGB.

int
@NonNull String

Public constructors

LayoutColor

Added in 1.3.0-beta02
public LayoutColor(
    @ColorInt int staticArgb,
    @RequiresSchemaVersion(major = 1, minor = 200) DynamicBuilders.DynamicColor dynamicArgb
)

Public methods

equals

public boolean equals(Object other)

getDynamicArgb

Added in 1.3.0-beta02
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-beta02
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.

hashCode

public int hashCode()

toString

public @NonNull String toString()