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
|
getColorAttributes()
Returns the |
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[] |
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.