<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
androidx.constraintlayout.widget.ConstraintLayout
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
tools:context
=
".MainActivity"
tools:ignore
=
"HardcodedText"
>
<
Button
android:id
=
"@+id/show_snackbar_button"
android:layout_width
=
"0dp"
android:layout_height
=
"wrap_content"
android:layout_marginStart
=
"32dp"
android:layout_marginTop
=
"128dp"
android:layout_marginEnd
=
"32dp"
android:text
=
"SHOW SNACKBAR"
app:layout_constraintEnd_toEndOf
=
"parent"
app:layout_constraintStart_toStartOf
=
"parent"
app:layout_constraintTop_toTopOf
=
"parent"
/>
<
com.google.android.material.floatingactionbutton.FloatingActionButton
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:layout_marginEnd
=
"16dp"
android:layout_marginBottom
=
"16dp"
android:backgroundTint
=
"@color/colorPrimary"
android:src
=
"@drawable/ic_add_black_24dp"
app:layout_constraintBottom_toTopOf
=
"@+id/snackbar_layout"
app:layout_constraintEnd_toEndOf
=
"parent"
/>
<
androidx.coordinatorlayout.widget.CoordinatorLayout
android:id
=
"@+id/snackbar_layout"
android:layout_width
=
"match_parent"
android:layout_height
=
"wrap_content"
android:layout_alignParentStart
=
"true"
android:layout_alignParentBottom
=
"true"
app:layout_constraintBottom_toBottomOf
=
"parent"
/>
</
androidx.constraintlayout.widget.ConstraintLayout
>