Stay organized with collections
Save and categorize content based on your preferences.
com.google.android.material.color
Interfaces
Classes
ColorContrast |
Utility for applying contrast colors to application/activities.
|
ColorContrastOptions |
Wrapper class for specifying color contrast options when applying contrast to branded and custom
themes.
|
ColorContrastOptions.Builder |
Builder class for specifying options when applying contrast.
|
ColorRoles |
Each accent color (primary, secondary and tertiary), is provided as a group of four supplementary
color roles with different luminance which can be used in the UI to define emphasis and to
provide a greater flexibility in expression.
|
DynamicColors |
Utility for applying dynamic colors to application/activities.
|
DynamicColorsOptions |
Wrapper class for specifying dynamic colors options when applying dynamic colors.
|
DynamicColorsOptions.Builder |
Builder class for specifying options when applying dynamic colors.
|
HarmonizedColorAttributes |
A class for specifying color attributes for harmonization, which contains an array of color
attributes, with the option to specify a custom theme overlay.
|
HarmonizedColors |
A class for harmonizing color resources and attributes.
|
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.
|
HarmonizedColorsOptions.Builder |
Builder class for specifying options when harmonizing colors.
|
MaterialColors |
A utility class for common color variants used in Material themes.
|
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# com.google.android.material.color\n=================================\n\nInterfaces\n----------\n\n|-----------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|\n| [DynamicColors.OnAppliedCallback](/reference/com/google/android/material/color/DynamicColors.OnAppliedCallback) | The interface that provides a callback method after dynamic colors have been applied. |\n| [DynamicColors.Precondition](/reference/com/google/android/material/color/DynamicColors.Precondition) | The interface that provides a precondition to decide if dynamic colors should be applied. |\n\nClasses\n-------\n\n|-----------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ColorContrast](/reference/com/google/android/material/color/ColorContrast) | Utility for applying contrast colors to application/activities. |\n| [ColorContrastOptions](/reference/com/google/android/material/color/ColorContrastOptions) | Wrapper class for specifying color contrast options when applying contrast to branded and custom themes. |\n| [ColorContrastOptions.Builder](/reference/com/google/android/material/color/ColorContrastOptions.Builder) | Builder class for specifying options when applying contrast. |\n| [ColorRoles](/reference/com/google/android/material/color/ColorRoles) | Each accent color (primary, secondary and tertiary), is provided as a group of four supplementary color roles with different luminance which can be used in the UI to define emphasis and to provide a greater flexibility in expression. |\n| [DynamicColors](/reference/com/google/android/material/color/DynamicColors) | Utility for applying dynamic colors to application/activities. |\n| [DynamicColorsOptions](/reference/com/google/android/material/color/DynamicColorsOptions) | Wrapper class for specifying dynamic colors options when applying dynamic colors. |\n| [DynamicColorsOptions.Builder](/reference/com/google/android/material/color/DynamicColorsOptions.Builder) | Builder class for specifying options when applying dynamic colors. |\n| [HarmonizedColorAttributes](/reference/com/google/android/material/color/HarmonizedColorAttributes) | A class for specifying color attributes for harmonization, which contains an array of color attributes, with the option to specify a custom theme overlay. |\n| [HarmonizedColors](/reference/com/google/android/material/color/HarmonizedColors) | A class for harmonizing color resources and attributes. |\n| [HarmonizedColorsOptions](/reference/com/google/android/material/color/HarmonizedColorsOptions) | Wrapper class for specifying harmonization options, whether to harmonize an array of color resources, or a [HarmonizedColorAttributes](/reference/com/google/android/material/color/HarmonizedColorAttributes), along with the color attribute provided to harmonize with. |\n| [HarmonizedColorsOptions.Builder](/reference/com/google/android/material/color/HarmonizedColorsOptions.Builder) | Builder class for specifying options when harmonizing colors. |\n| [MaterialColors](/reference/com/google/android/material/color/MaterialColors) | A utility class for common color variants used in Material themes. |\n\n-\n\n Interfaces\n ----------\n\n - [DynamicColors.OnAppliedCallback](/reference/com/google/android/material/color/DynamicColors.OnAppliedCallback)\n - [DynamicColors.Precondition](/reference/com/google/android/material/color/DynamicColors.Precondition)\n-\n\n Classes\n -------\n\n - [ColorContrast](/reference/com/google/android/material/color/ColorContrast)\n - [ColorContrastOptions](/reference/com/google/android/material/color/ColorContrastOptions)\n - [ColorContrastOptions.Builder](/reference/com/google/android/material/color/ColorContrastOptions.Builder)\n - [ColorRoles](/reference/com/google/android/material/color/ColorRoles)\n - [DynamicColors](/reference/com/google/android/material/color/DynamicColors)\n - [DynamicColorsOptions](/reference/com/google/android/material/color/DynamicColorsOptions)\n - [DynamicColorsOptions.Builder](/reference/com/google/android/material/color/DynamicColorsOptions.Builder)\n - [HarmonizedColorAttributes](/reference/com/google/android/material/color/HarmonizedColorAttributes)\n - [HarmonizedColors](/reference/com/google/android/material/color/HarmonizedColors)\n - [HarmonizedColorsOptions](/reference/com/google/android/material/color/HarmonizedColorsOptions)\n - [HarmonizedColorsOptions.Builder](/reference/com/google/android/material/color/HarmonizedColorsOptions.Builder)\n - [MaterialColors](/reference/com/google/android/material/color/MaterialColors)"]]