public class ButtonDefaults


Contains the default values used by Button.

Summary

Constants

static final @NonNull DimensionBuilders.DpProp

The default size for standard Button.

static final @NonNull DimensionBuilders.DpProp

The recommended size for extra large Button.

static final @NonNull DimensionBuilders.DpProp

The recommended size for large Button.

static final @NonNull ButtonColors

The recommended colors for a primary Button.

static final @NonNull ButtonColors

The recommended colors for a secondary Button.

Public methods

static @NonNull DimensionBuilders.DpProp

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

static @NonNull DimensionBuilders.DpProp
recommendedIconSize(@Dimension(unit = 0) float buttonSize)

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

Constants

DEFAULT_SIZE

Added in 1.0.0
public static final @NonNull DimensionBuilders.DpProp DEFAULT_SIZE

The default size for standard Button.

EXTRA_LARGE_SIZE

Added in 1.0.0
public static final @NonNull DimensionBuilders.DpProp EXTRA_LARGE_SIZE

The recommended size for extra large Button.

LARGE_SIZE

Added in 1.0.0
public static final @NonNull DimensionBuilders.DpProp LARGE_SIZE

The recommended size for large Button.

PRIMARY_COLORS

Added in 1.0.0
public static final @NonNull ButtonColors PRIMARY_COLORS

The recommended colors for a primary Button.

SECONDARY_COLORS

Added in 1.0.0
public static final @NonNull ButtonColors SECONDARY_COLORS

The recommended colors for a secondary Button.

Public methods

recommendedIconSize

Added in 1.0.0
public static @NonNull DimensionBuilders.DpProp recommendedIconSize(@NonNull DimensionBuilders.DpProp buttonSize)

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

recommendedIconSize

Added in 1.0.0
public static @NonNull DimensionBuilders.DpProp recommendedIconSize(@Dimension(unit = 0) float buttonSize)

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