Android: AppCompat Snackbar and not AppCompat FloatingActionButton

It is possible to use CoordinatorLayout and custom FloatingActionButton like this:

Futuresimple - FloatingActionButton

or

Clans - FloatingActionButton

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)?

+3


source to share


1 answer


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 .

+1


source







All Articles