Colors

Added in 1.1.0
Deprecated in 1.2.0

public class Colors


Represent the container for default color scheme in your Tile, that can be used to create color objects for all Material components.

See DEFAULT for default color scheme.

Summary

Constants

static final @NonNull Colors

The default color scheme to be used in Tiles Material components.

Public constructors

Colors(
    @ColorInt int primary,
    @ColorInt int onPrimary,
    @ColorInt int surface,
    @ColorInt int onSurface
)

Constructor for Colors object.

Public methods

@ColorInt int

The onPrimary color to be used on components.

@ColorInt int

The onSurface color to be used on components.

@ColorInt int

The primary color to be used on components.

@ColorInt int

The surface color to be used on components.

Constants

DEFAULT

Added in 1.1.0
Deprecated in 1.2.0
public static final @NonNull Colors DEFAULT

The default color scheme to be used in Tiles Material components.

Public constructors

Colors

Added in 1.1.0
Deprecated in 1.2.0
public Colors(
    @ColorInt int primary,
    @ColorInt int onPrimary,
    @ColorInt int surface,
    @ColorInt int onSurface
)

Constructor for Colors object.

Parameters
@ColorInt int primary

The background color to be used for primary components. Should be in ARGB format.

@ColorInt int onPrimary

The content color or tint color to be used for primary components. Should be in ARGB format.

@ColorInt int surface

The background color to be used for secondary components. Should be in ARGB format.

@ColorInt int onSurface

The content color or tint color to be used for secondary components. Should be in ARGB format.

Public methods

getOnPrimary

Added in 1.1.0
Deprecated in 1.2.0
public @ColorInt int getOnPrimary()

The onPrimary color to be used on components.

getOnSurface

Added in 1.1.0
Deprecated in 1.2.0
public @ColorInt int getOnSurface()

The onSurface color to be used on components.

getPrimary

Added in 1.1.0
Deprecated in 1.2.0
public @ColorInt int getPrimary()

The primary color to be used on components.

getSurface

Added in 1.1.0
Deprecated in 1.2.0
public @ColorInt int getSurface()

The surface color to be used on components.