O'Reilly logo

Mastering Android Studio 3 by Kyle Mew

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Snackbars and Floating Action Buttons

Snackbars and Floating Action Buttons(FABs) are two of the most recognizable material widgets. Although not entirely replacing the toast widget, snackbars offer a more sophisticated form of activity notification, allowing controls and media rather than just text, which was the case for toasts. FABs perform the same function as conventional buttons but use their position to indicate their function.

Without a coordinator layout to control behavior, Snackbar rising from the bottom of the screen would obscure any views or widgets behind it. It would be far preferable if the widget were to slide gracefully out of the way, something you will have seen often in well designed material apps. The following exercise ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required