|
|
@@ -1,18 +1,48 @@
|
|
|
-<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<layout 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:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- tools:context=".MainActivity">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="Hello World!"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
-
|
|
|
-</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ xmlns:tools="http://schemas.android.com/tools">
|
|
|
+
|
|
|
+ <data>
|
|
|
+
|
|
|
+ </data>
|
|
|
+
|
|
|
+ <androidx.drawerlayout.widget.DrawerLayout
|
|
|
+ android:id="@+id/drawer_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:fitsSystemWindows="true"
|
|
|
+ tools:context=".presentation.main.MainActivity">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.Toolbar
|
|
|
+ android:id="@+id/toolbar"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@color/colorPrimary"
|
|
|
+ android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar" />
|
|
|
+
|
|
|
+ <fragment
|
|
|
+ android:id="@+id/nav_host_fragment"
|
|
|
+ android:name="androidx.navigation.fragment.NavHostFragment"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ app:defaultNavHost="true"
|
|
|
+ app:navGraph="@navigation/nav_graph"
|
|
|
+ tools:ignore="FragmentTagUsage" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <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/view_nav_header"
|
|
|
+ app:menu="@menu/navigation_menu" />
|
|
|
+
|
|
|
+ </androidx.drawerlayout.widget.DrawerLayout>
|
|
|
+</layout>
|