<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity"
    android:id="@+id/con">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:layout_margin="10sp">
        <android.support.v7.widget.AppCompatButton
            android:background="@color/colorAccent"
            android:textColor="#FFFFFF"
            android:onClick="show"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="Default Snackbar"
            android:layout_marginTop="10sp"/>

        <Button
            android:background="@color/colorAccent"
            android:textColor="#FFFFFF"
            android:onClick="callback"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="Snackbar With action callback"
            android:layout_marginTop="10sp"/>
    </LinearLayout>

</android.support.constraint.ConstraintLayout>