HarmonizedColorsOptions

public class HarmonizedColorsOptions
extends Object

java.lang.Object
   ↳ com.google.android.material.color.HarmonizedColorsOptions


Wrapper class for specifying harmonization options, whether to harmonize an array of color resources, or a HarmonizedColorAttributes, along with the color attribute provided to harmonize with.

Summary

Nested classes

class HarmonizedColorsOptions.Builder

Builder class for specifying options when harmonizing colors. 

Public methods

static HarmonizedColorsOptions createMaterialDefaults()

Create HarmonizedColorsOptions with Material default, with Error colors being harmonized with Primary.

int getColorAttributeToHarmonizeWith()

Returns the color attribute to harmonize color resources and HarmonizedColorAttributes with.

HarmonizedColorAttributes getColorAttributes()

Returns the HarmonizedColorAttributes that needs to be harmonized.

int[] getColorResourceIds()

Returns the array of color resource ids that needs to be harmonized.

Inherited methods

Public methods

createMaterialDefaults

public static HarmonizedColorsOptions createMaterialDefaults ()

Create HarmonizedColorsOptions with Material default, with Error colors being harmonized with Primary.

Returns
HarmonizedColorsOptions

getColorAttributeToHarmonizeWith

public int getColorAttributeToHarmonizeWith ()

Returns the color attribute to harmonize color resources and HarmonizedColorAttributes with.

Returns
int

getColorAttributes

public HarmonizedColorAttributes getColorAttributes ()

Returns the HarmonizedColorAttributes that needs to be harmonized.

Returns
HarmonizedColorAttributes

getColorResourceIds

public int[] getColorResourceIds ()

Returns the array of color resource ids that needs to be harmonized.

Returns
int[]