ButtonDefaults

Added in 1.1.0
Deprecated in 1.2.0

class ButtonDefaults


Contains the default values used by button Tiles components.

Summary

Constants

const DimensionBuilders.DpProp

The default size for standard Button.

const DimensionBuilders.DpProp

The recommended size for extra large Button.

const DimensionBuilders.DpProp

The recommended size for large Button.

const ButtonColors

The recommended colors for a primary Button.

const ButtonColors

The recommended colors for a secondary Button.

Public functions

java-static DimensionBuilders.DpProp

Returns the recommended icon size for the given size of a Button.

java-static DimensionBuilders.DpProp
recommendedIconSize(buttonSize: @Dimension(unit = 0) Float)

Returns the recommended icon size for the given size of a Button.

Constants

DEFAULT_SIZE

Added in 1.1.0
Deprecated in 1.2.0
const val DEFAULT_SIZEDimensionBuilders.DpProp

The default size for standard Button.

EXTRA_LARGE_SIZE

Added in 1.1.0
Deprecated in 1.2.0
const val EXTRA_LARGE_SIZEDimensionBuilders.DpProp

The recommended size for extra large Button.

LARGE_SIZE

Added in 1.1.0
Deprecated in 1.2.0
const val LARGE_SIZEDimensionBuilders.DpProp

The recommended size for large Button.

PRIMARY_COLORS

Added in 1.1.0
Deprecated in 1.2.0
const val PRIMARY_COLORSButtonColors

The recommended colors for a primary Button.

SECONDARY_COLORS

Added in 1.1.0
Deprecated in 1.2.0
const val SECONDARY_COLORSButtonColors

The recommended colors for a secondary Button.

Public functions

recommendedIconSize

Added in 1.1.0
Deprecated in 1.2.0
java-static fun recommendedIconSize(buttonSize: DimensionBuilders.DpProp): DimensionBuilders.DpProp

Returns the recommended icon size for the given size of a Button.

recommendedIconSize

Added in 1.1.0
Deprecated in 1.2.0
java-static fun recommendedIconSize(buttonSize: @Dimension(unit = 0) Float): DimensionBuilders.DpProp

Returns the recommended icon size for the given size of a Button.