kobakei / MaterialFabSpeedDial

Android UI library of FAB speed dial
Apache License 2.0
190 stars 27 forks source link

Fab does not return to original position after snackbar dismiss when using MaterialComponents themes #31

Open vpotvin opened 5 years ago

vpotvin commented 5 years ago

Overview

If your app theme uses a parent of "Theme.MaterialComponents.xxxxxx" then the FAB does not return to its normal position after snackbar dismisses.

I noticed this because I was using a MaterialComponents theme so that I could use the MaterialComponents BottomNavigationView. After much experimenting I narrowed this down as the issue.

Environment (required for bug report)

Also saw this behavior on a Samsung S7 Edge running Oreo.

Steps to reproduce (required for bug report)

Expected behavior (required for bug report)

Known workaround

This can be worked around by not having the app theme extend from a MaterialComponents theme. However this can be annoying as some material components require this theming. This can be worked around by having only those individual components in a layout extend the theme, but again, seems like we should be able to use the MaterialComponents themes since the Androidx FloatingActionButton behaves as desired with these themes.