class ButtonDefaults


Contains the default values used by Button.

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 Button.

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

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

Constants

DEFAULT_SIZE

Added in 1.0.0
const val DEFAULT_SIZEDimensionBuilders.DpProp

The default size for standard Button.

EXTRA_LARGE_SIZE

Added in 1.0.0
const val EXTRA_LARGE_SIZEDimensionBuilders.DpProp

The recommended size for extra large Button.

LARGE_SIZE

Added in 1.0.0
const val LARGE_SIZEDimensionBuilders.DpProp

The recommended size for large Button.

PRIMARY_COLORS

Added in 1.0.0
const val PRIMARY_COLORSButtonColors

The recommended colors for a primary Button.

SECONDARY_COLORS

Added in 1.0.0
const val SECONDARY_COLORSButtonColors

The recommended colors for a secondary Button.

Public functions

recommendedIconSize

Added in 1.0.0
java-static fun recommendedIconSize(buttonSize: DimensionBuilders.DpProp): DimensionBuilders.DpProp

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

recommendedIconSize

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

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