This example will tell you how to open a popup alert dialog when user click a floating action button, and after user input user name in the dialog, it will save the user name in the list view in the main screen. If the user name exist, it will popup a message use android snackbar.
Floating Action Button is an image button which float on the screen surface. It will stay in one place when screen scroll. Commonly the floating button is placed at the bottom right of the screen. Snackbar is a bar which will prompt up from screen bottom. It is a method to show message to client …
android.support.design.widget.Snackbar is a control in the Android Support Design Library. It can quickly pop up message at the bottom of the screen. User can click the button at right side of Snackbar to interact with it. This article includes three Snackbar examples.