ChipColors
public class ChipColors
Represents the background and content colors used in Chip.
See PRIMARY_COLORS for the default colors used in a primary styled Chip. See SECONDARY_COLORS for the default colors used in a secondary styled Chip.
Summary
Public constructors |
|---|
ChipColors(Constructor for the |
ChipColors(@ColorInt int backgroundColor, @ColorInt int contentColor)Constructor for the |
ChipColors(Constructor for the |
ChipColors(Constructor for the |
Public methods |
|
|---|---|
@NonNull ColorBuilders.ColorProp |
The background color to be used on |
@NonNull ColorBuilders.ColorProp |
The main text color to be used on |
@NonNull ColorBuilders.ColorProp |
The icon color to be used on |
@NonNull ColorBuilders.ColorProp |
The label text color to be used on |
static @NonNull ChipColors |
primaryChipColors(@NonNull Colors colors)Returns a |
static @NonNull ChipColors |
secondaryChipColors(@NonNull Colors colors)Returns a |
Public constructors
ChipColors
public ChipColors(
@NonNull ColorBuilders.ColorProp backgroundColor,
@NonNull ColorBuilders.ColorProp contentColor
)
Constructor for the ChipColors object.
| Parameters | |
|---|---|
@NonNull ColorBuilders.ColorProp backgroundColor |
The background color to be used for |
@NonNull ColorBuilders.ColorProp contentColor |
The content color to be used for all items inside |
ChipColors
public ChipColors(@ColorInt int backgroundColor, @ColorInt int contentColor)
Constructor for the ChipColors object.
ChipColors
public ChipColors(
@NonNull ColorBuilders.ColorProp backgroundColor,
@NonNull ColorBuilders.ColorProp iconColor,
@NonNull ColorBuilders.ColorProp contentColor,
@NonNull ColorBuilders.ColorProp secondaryContentColor
)
Constructor for the ChipColors object.
| Parameters | |
|---|---|
@NonNull ColorBuilders.ColorProp backgroundColor |
The background color to be used for |
@NonNull ColorBuilders.ColorProp iconColor |
The color to be used for an icon in |
@NonNull ColorBuilders.ColorProp contentColor |
The text color to be used for a main text in |
@NonNull ColorBuilders.ColorProp secondaryContentColor |
The text color to be used for a label text in |
ChipColors
public ChipColors(
@ColorInt int backgroundColor,
@ColorInt int iconColor,
@ColorInt int contentColor,
@ColorInt int secondaryContentColor
)
Constructor for the ChipColors object.
| Parameters | |
|---|---|
@ColorInt int backgroundColor |
The background color to be used for |
@ColorInt int iconColor |
The color to be used for an icon in |
@ColorInt int contentColor |
The text color to be used for a main text in |
@ColorInt int secondaryContentColor |
The text color to be used for a label text in |
Public methods
getBackgroundColor
public @NonNull ColorBuilders.ColorProp getBackgroundColor()
The background color to be used on Chip.
getContentColor
public @NonNull ColorBuilders.ColorProp getContentColor()
The main text color to be used on Chip.
getIconColor
public @NonNull ColorBuilders.ColorProp getIconColor()
The icon color to be used on Chip.
getSecondaryContentColor
public @NonNull ColorBuilders.ColorProp getSecondaryContentColor()
The label text color to be used on Chip.
primaryChipColors
public static @NonNull ChipColors primaryChipColors(@NonNull Colors colors)
Returns a ChipColors object, using the current Primary colors from the given Colors.
secondaryChipColors
public static @NonNull ChipColors secondaryChipColors(@NonNull Colors colors)
Returns a ChipColors object, using the current Surface colors from the given Colors.