Tuesday, March 1, 2016

Snackbar: The appropriate interruption

A Snackbar is similar to a Toast, but is more versatile in that it is interactive — like offering that undo your user is still searching for. A Snackbar animates upward from the bottom of the screen and the user can swipe it away — or not. If they do nothing, it will time out on its own and automatically disappear (like a Toast!).

Read the blog post: https://medium.com/@dontmesswithjo/snackbar-the-appropriate-interruption-ceb54d9be583

Alerts are pretty critical for communicating with your user. But it helps to know what is appropriate so that your users don’t hate you. Fortunately, there’s a simple answer: use a Snackbar! (http://developer.android.com/reference/android/support/design/widget/Snackbar.html)

But, for those nuanced cases where you want to choose between a Toast and a Snackbar, the design docs have pretty much every detail you could need. (http://www.google.com/design/spec/components/snackbars-toasts.html#) And if you really like being wrong, there’s always a Dialog! (http://www.google.com/design/spec/components/dialogs.html#dialogs-behavior)

But you’re better than that. So be a better developer and use the better choice: Snackbar.

- My blog post of "Android Snackbar example of Android Design Support Library".

No comments: