Android SnackBar

Example:

                                    
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:context=".SnackbarExample"
        android:id="@+id/coordinatorlayout">
    
       <LinearLayout
           android:layout_width="match_parent"
           android:layout_height="match_parent"
           android:orientation="vertical"
           android:gravity="center"
           >
   
        <Button
            android:id="@+id/snackbar1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="SHOW SNACKBAR"
            android:textColor="@color/colorWhite"
            android:background="@color/colorOrange"
            android:padding="16dp"
            />
   
       </LinearLayout>
   
</android.support.design.widget.CoordinatorLayout>
                                    
                                  

Output