1<RelativeLayout 2 xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:app="http://schemas.android.com/apk/res-auto" 4 android:layout_width="match_parent" 5 android:layout_height="match_parent" 6 xmlns:tools="http://schemas.android.com/tools" 7 tools:context=".MainActivity" 8 android:id="@+id/relative_layout"> 9 10 <androidx.appcompat.widget.Toolbar 11 android:id="@+id/my_awesome_toolbar" 12 android:layout_height="wrap_content" 13 android:layout_width="match_parent" 14 android:background="?attr/colorPrimary" 15 app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" 16 android:layout_alignParentTop="true" 17 android:layout_alignParentLeft="true" 18 android:layout_alignParentStart="true" /> 19 20 <androidx.drawerlayout.widget.DrawerLayout 21 android:id="@+id/drawer_layout" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:layout_alignParentBottom="true" 25 android:layout_below="@+id/my_awesome_toolbar"> 26 <!-- The main content view --> 27 <LinearLayout 28 android:id="@+id/content_frame" 29 android:orientation="vertical" 30 android:layout_width="fill_parent" 31 android:layout_height="fill_parent" > 32 <GridView 33 android:id="@+id/game_grid" 34 android:layout_width="match_parent" 35 android:layout_height="wrap_content" 36 android:gravity="center" 37 android:verticalSpacing="0dp" 38 android:numColumns="auto_fit" 39 android:stretchMode="columnWidth" /> 40 </LinearLayout> 41 <!-- The navigation drawer --> 42 <fragment 43 android:name="com.virtualapplications.play.NavigationDrawerFragment" 44 android:id="@+id/navigation_drawer" 45 android:layout_width="@dimen/navigation_drawer_width" 46 android:layout_height="match_parent" 47 android:layout_gravity="start" 48 tools:layout="@layout/fragment_navigation_drawer" 49 android:visibility="gone" 50 /> 51 </androidx.drawerlayout.widget.DrawerLayout> 52</RelativeLayout>