Layer

enum Layer : Enum<Layer>

Layering tokens

Layering tokens are explicit tokens used to manually map the layering model onto components. Layering tokens come in predefined sets that coordinate with the different layer levels. For each layer that a component needs to lives on, a separate component variation must be built using the tokens from that layer set.

There are four layers within a theme: base layer, layer 01, layer 02, and layer 03. Layers stack one on top of the other in a set order. Each step in UI color (excluding interaction colors) is another layer and will require the use of a different set of layering tokens.

Follow link below for more information about layer tokens and how they work.

(From Layering tokens documentation)

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun next(): Layer

Returns the next layer in the layering model from this layer.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun valueOf(value: String): Layer

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.