Tomas
Tomas

Reputation: 4861

Android: AppCompat Snackbar and non AppCompat FloatingActionButton

It's possible to use CoordinatorLayout and custom FloatingActionButton like this:

Futuresimple - FloatingActionButton

or

Clans - FloatingActionButton

in new AppCompat Snackbar (to automatically move upward as the snackbar animates in and returns to its position when the snackbar animates out on)?

Upvotes: 3

Views: 1908

Answers (1)

Gabriele Mariotti
Gabriele Mariotti

Reputation: 363449

You can use these libraries, hovewer, some built-in features are enabled only with the standard FloatingActionButton and the CoordinatorLayout.

By specifying Behaviors for child views of a CoordinatorLayout you can provide many different interactions. FloatingActionButton has its FloatingActionButton.Behavior and the animation in the SnackBar is realized by the Snackbar.Behavior which extends the SwipeDismissBehavior.

Upvotes: 1

Related Questions