Snackbars are a great way to show feedback and messages to the users. Snackbars show a message at the bottom of a mobile or lower-left on larger devices. They can also have an action button. They automatically disappear after the timeout or after user interaction or if the user swipes on the snackbar.
In this recipe, we will learn how to easily show a Snackbar using Anko layouts. Showing Snackbars in the traditional way is a bit long; Anko makes it simpler to quickly show snackbars. Let's see how.