gui: Convert UI to use Fragments
Change-Id: I7269604a1da72e6b22f4bbac31c1f5561660ccf5
Refs: #2646, #2667
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..6d8b08a
--- /dev/null
+++ b/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<android.support.v4.widget.DrawerLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/drawer_layout"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context=".MainActivity">
+
+ <!-- Main container for fragments to be presented in -->
+ <FrameLayout
+ android:id="@+id/main_fragment_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ />
+
+ <!-- DrawerFragment for user navigation -->
+ <FrameLayout
+ android:id="@+id/navigation_drawer"
+ android:layout_width="@dimen/drawer_width"
+ android:layout_height="match_parent"
+ android:layout_gravity="start"
+ tools:layout="@layout/activity_main_drawer_listview"
+ />
+
+</android.support.v4.widget.DrawerLayout>