Android: AppCompat Snackbar and not AppCompat FloatingActionButton
It is possible to use CoordinatorLayout and custom FloatingActionButton like this:
Futuresimple - FloatingActionButton
or
in the new Snackbar AppCompat (to automatically move up when the snack bar is activated and returns to its position when the snack bar comes to life)?
source to share
You can use these libraries, hoverwer, some built-in functions are included with only standard FloatingActionButton
and CoordinatorLayout
.
By defining behavior for the child views of the Layout coordinator, you can provide many different interactions. FloatingActionButton
has a
FloatingActionButton.Behavior , and the animation is SnackBar
implemented using Snackbar.Behavior, which extends SwipeDismissBehavior .
source to share