Package 

Enum FabSize

  • 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--> />

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Integer value
    • Constructor Summary

      Constructors 
      Constructor Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getValue()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait