1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.drawerlayout.widget.DrawerLayout 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:id="@+id/drawer_layout"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:fitsSystemWindows="true"
- tools:openDrawer="start"
- tools:context=".MainActivity">
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/recyclerView"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:paddingTop="50dp"
- app:layoutManager="androidx.recyclerview.widget.GridLayoutManager">
- </androidx.recyclerview.widget.RecyclerView>
- <include
- layout="@layout/app_bar_main"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:paddingLeft="20dp"
- android:paddingRight="20dp" />
- <com.google.android.material.navigation.NavigationView
- android:id="@+id/nav_view"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_gravity="start"
- android:fitsSystemWindows="true"
- app:headerLayout="@layout/nav_header_main"
- app:menu="@menu/activity_main_drawer" >
- <Button
- android:id="@+id/addEmailButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="bottom|right"
- android:layout_marginRight="20dp"
- android:layout_marginBottom="20dp"
- android:onClick="onClick"
- android:paddingLeft="10dp"
- android:paddingRight="10dp"
- android:text="Add Email" />
- <Button
- android:id="@+id/settingsButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="bottom|left"
- android:layout_marginLeft="20dp"
- android:layout_marginBottom="20dp"
- android:onClick="onClick"
- android:paddingLeft="10dp"
- android:paddingRight="10dp"
- android:text="Settings" />
- </com.google.android.material.navigation.NavigationView>
- </androidx.drawerlayout.widget.DrawerLayout>
|