HarmonizedColors

open class HarmonizedColors

A class for harmonizing color resources and attributes.

This class is used for harmonizing color resources/attributes defined in xml at runtime. The values of harmonized resources/attributes will be overridden, and afterwards if you retrieve the value from the associated context, or inflate resources like layouts that are using those harmonized resources/attributes, the overridden values will be used instead.

If you need to harmonize color resources at runtime, see: applyToContextIfAvailable, and wrapContextIfAvailable

Functions

Link copied to clipboard
Harmonizes the specified color resources, attributes, and theme overlay in the provided.
Link copied to clipboard
If harmonization is not available, color will not be harmonized.
Link copied to clipboard
Wraps the given Context from HarmonizedColorsOptions with the color resources being harmonized.