fahad005

Snackbar (xml)

Oct 26th, 2021
1,040
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <layout>
  4.     <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5.        xmlns:tools="http://schemas.android.com/tools"
  6.        android:id="@+id/coordinatorLayout"
  7.        android:layout_width="match_parent"
  8.        android:layout_height="match_parent"
  9.        android:orientation="vertical"
  10.        tools:context=".MainActivity">
  11.  
  12.         <Button
  13.            android:id="@+id/button"
  14.            android:layout_width="wrap_content"
  15.            android:layout_height="wrap_content"
  16.            android:layout_gravity="center"
  17.            android:backgroundTint="@color/teal_200"
  18.            android:text="Toast"
  19.            />
  20.  
  21.     </androidx.coordinatorlayout.widget.CoordinatorLayout>
  22. </layout>
RAW Paste Data