-
- All Implemented Interfaces:
-
java.io.Serializable
,kotlin.Comparable
public enum FabSize extends 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:
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:
<!-- Required by Android Framework, equal to layout_width/layout_height --> app:maxImageSize="84dp" <!-- Required by Android Framework, equal to efab_icon/fab_icon--> />