summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/activity_main.xml
diff options
context:
space:
mode:
authorJoe Robinson <joe@lc8n.com>2019-04-20 17:45:19 +0200
committerJoe Robinson <joe@lc8n.com>2019-04-20 17:45:19 +0200
commit3075e6acb5c29434b2d7be0c6ad7747a6358f045 (patch)
tree214d37dfb9c7d2f4aa0dc07cb109f66e4165cf74 /app/src/main/res/layout/activity_main.xml
parent9d430209d39d0e68f6311adfff9d476c8856f662 (diff)
Added Gallery View
Diffstat (limited to 'app/src/main/res/layout/activity_main.xml')
-rw-r--r--app/src/main/res/layout/activity_main.xml34
1 files changed, 24 insertions, 10 deletions
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index 4cc95a2..3e1b702 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -9,18 +9,32 @@
android:fitsSystemWindows="true"
tools:openDrawer="start">
- <!--<include-->
- <!--layout="@layout/app_bar_main"-->
- <!--android:layout_width="match_parent"-->
- <!--android:layout_height="match_parent"/>-->
- <fragment
- android:name="androidx.navigation.fragment.NavHostFragment"
- android:id="@+id/nav_host_fragment"
+ <LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
- app:defaultNavHost="true"
- app:navGraph="@navigation/nav_graph"
- />
+ android:orientation="vertical">
+
+ <com.google.android.material.appbar.AppBarLayout
+ android:id="@+id/appbar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <androidx.appcompat.widget.Toolbar
+ android:id="@+id/toolbar"
+ android:layout_width="match_parent"
+ android:layout_height="?attr/actionBarSize"/>
+
+ </com.google.android.material.appbar.AppBarLayout>
+ <fragment
+ android:name="androidx.navigation.fragment.NavHostFragment"
+ android:id="@+id/nav_host_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ app:defaultNavHost="true"
+ app:navGraph="@navigation/nav_graph"
+ />
+
+ </LinearLayout>
<com.google.android.material.navigation.NavigationView