FabSize

enum FabSize : Enum<FabSize>

The legal sizes of ExpandableFabs and FabOptions.

FabSize.MINI, FabSize.NORMAL and FabSize.AUTO map to FloatingActionButton.SIZE_MINI, FloatingActionButton.SIZE_NORMAL and FloatingActionButton.SIZE_AUTO, respectively. FabSize.CUSTOM should be used when setting the size of the ExpandableFab or FabOption's layout_width and layout_height to a custom value manually, and thus maps to a random value that will never be used.

Developer Notes:

  1. When using CUSTOM, the Android Framework also requires you to set app:fabCustomSize equal to your custom layout_width/layout_height size and app:maxImageSize equal to your icon size in order to ensure your icon is centered and sized properly.

Example:

app:maxImageSize="84dp" />

Since

1.0.0

Entries

CUSTOM
Link copied to clipboard
CUSTOM(-1234)
AUTO
Link copied to clipboard
AUTO(FloatingActionButton.SIZE_AUTO)
NORMAL
Link copied to clipboard
NORMAL(FloatingActionButton.SIZE_NORMAL)
MINI
Link copied to clipboard
MINI(FloatingActionButton.SIZE_MINI)

Properties

value
Link copied to clipboard
val value: Int