HarmonizedColorsOptions.Builder
public
static
class
HarmonizedColorsOptions.Builder
extends Object
java.lang.Object
|
↳ |
com.google.android.material.color.HarmonizedColorsOptions.Builder
|
Builder class for specifying options when harmonizing colors.
Summary
Inherited methods |
From class
java.lang.Object
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 constructors
Builder
public Builder ()
Public methods
setColorAttributeToHarmonizeWith
public HarmonizedColorsOptions.Builder setColorAttributeToHarmonizeWith (int colorAttributeToHarmonizeWith)
Sets the color attribute to harmonize with.
Parameters |
colorAttributeToHarmonizeWith |
int : The color attribute provided to harmonize color
resources and HarmonizedColorAttributes with.
|
setColorAttributes
public HarmonizedColorsOptions.Builder setColorAttributes (HarmonizedColorAttributes colorAttributes)
Sets the harmonized color attributes for harmonization.
This method will look up the color resource the attribute points to, and harmonizing the
color resource directly. If you are looking to harmonize only color resources, in most cases
when constructing HarmonizedColorsOptions
,
setColorResourceIds
public HarmonizedColorsOptions.Builder setColorResourceIds (int[] colorResourceIds)
Sets the array of color resource ids for harmonization.
Parameters |
colorResourceIds |
int : The array of color resource ids that needs to be harmonized.
|
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]