The second Android 11 Developer Preview is now available, test it out and share your feedback.

FabPosition

enum class FabPosition
kotlin.Any
   ↳ kotlin.Enum<androidx.ui.material.Scaffold.FabPosition>
   ↳ androidx.ui.material.Scaffold.FabPosition

The possible positions for a FloatingActionButton attached to a Scaffold.

Summary

Enum values

Position FAB at the bottom of the screen in the center, above the BottomAppBar (if it exists)

Position FAB on the center of the screen, overlap with BottomAppBar (which should exist if this position is used, otherwise an exception will be thrown)

Position FAB at the bottom of the screen at the end, above the BottomAppBar (if it exists)

Position FAB on the end of the screen, overlap with BottomAppBar (which should exist if this position is used, otherwise an exception will be thrown)

Enum values

Center

enum val Center : Scaffold.FabPosition

Position FAB at the bottom of the screen in the center, above the BottomAppBar (if it exists)

CenterDocked

enum val CenterDocked : Scaffold.FabPosition

Position FAB on the center of the screen, overlap with BottomAppBar (which should exist if this position is used, otherwise an exception will be thrown)

End

enum val End : Scaffold.FabPosition

Position FAB at the bottom of the screen at the end, above the BottomAppBar (if it exists)

EndDocked

enum val EndDocked : Scaffold.FabPosition

Position FAB on the end of the screen, overlap with BottomAppBar (which should exist if this position is used, otherwise an exception will be thrown)