ButtonDefaults
class ButtonDefaults
Contains the default values used by Button.
Summary
Constants |
|
|---|---|
const DimensionBuilders.DpProp |
The default size for standard |
const DimensionBuilders.DpProp |
The recommended size for extra large |
const DimensionBuilders.DpProp |
The recommended size for large |
const ButtonColors |
The recommended colors for a primary |
const ButtonColors |
The recommended colors for a secondary |
Public functions |
|
|---|---|
java-static DimensionBuilders.DpProp |
recommendedIconSize(buttonSize: DimensionBuilders.DpProp)Returns the recommended icon size for the given size of |
java-static DimensionBuilders.DpProp |
recommendedIconSize(buttonSize: @Dimension(unit = 0) Float)Returns the recommended icon size for the given size of |
Constants
DEFAULT_SIZE
const val DEFAULT_SIZE: DimensionBuilders.DpProp
The default size for standard Button.
EXTRA_LARGE_SIZE
const val EXTRA_LARGE_SIZE: DimensionBuilders.DpProp
The recommended size for extra large Button.
LARGE_SIZE
const val LARGE_SIZE: DimensionBuilders.DpProp
The recommended size for large Button.
PRIMARY_COLORS
const val PRIMARY_COLORS: ButtonColors
The recommended colors for a primary Button.
SECONDARY_COLORS
const val SECONDARY_COLORS: ButtonColors
The recommended colors for a secondary Button.
Public functions
recommendedIconSize
java-static fun recommendedIconSize(buttonSize: DimensionBuilders.DpProp): DimensionBuilders.DpProp
Returns the recommended icon size for the given size of Button.
recommendedIconSize
java-static fun recommendedIconSize(buttonSize: @Dimension(unit = 0) Float): DimensionBuilders.DpProp
Returns the recommended icon size for the given size of Button.