HarmonizedColorsOptions

public class 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 types

Builder class for specifying options when harmonizing colors.

Public methods

static HarmonizedColorsOptions

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

int

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

HarmonizedColorAttributes

Returns the HarmonizedColorAttributes that needs to be harmonized.

int[]

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

Public fields

colorAttributeToHarmonizeWith

public final int colorAttributeToHarmonizeWith

colorAttributes

public final HarmonizedColorAttributes colorAttributes

colorResourceIds

public final int[] colorResourceIds

Public methods

createMaterialDefaults

public static HarmonizedColorsOptions createMaterialDefaults()

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

getColorAttributeToHarmonizeWith

public int getColorAttributeToHarmonizeWith()

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

getColorAttributes

public HarmonizedColorAttributes getColorAttributes()

Returns the HarmonizedColorAttributes that needs to be harmonized.

getColorResourceIds

public int[] getColorResourceIds()

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