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

Object clone()
boolean equals(Object arg0)
void finalize()
final Class<?> getClass()
int hashCode()
final void notify()
final void notifyAll()
String toString()
final void wait(long arg0, int arg1)
final void wait(long arg0)
final void wait()

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.

Returns
int

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.

Returns
int[]