How FabSpeedDial handles layout and CoordinatorLayout
masterWhen using FabSpeedDial, be aware of the following layout behaviors:
- Shadow Padding: For Android SDK versions earlier than 21, the library automatically handles the extra padding required to draw shadows, so you do not need to account for it manually.
- CoordinatorLayout Margins: In a
CoordinatorLayout, standard FAB margin values can sometimes be ignored. To resolve this,FabSpeedDialautomatically adds left or right margin values (depending on the gravity) while accounting for the SDK version. - Positioning: Always use standard Android APIs to position the view within its parent and ensure
app:fabGravityis set to a relevant value (e.g.,bottom_end).