aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/activity_main.xml
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-04-30 13:40:14 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-04-30 13:40:14 -0600
commit47ffcc64c0d443b16169f43848f1453ca8144031 (patch)
tree954a747334ec74dca23593572343cdf639e12117 /app/src/main/res/layout/activity_main.xml
parent9e2a0fe9d72bab97c2cd69ff6994148eda22fd35 (diff)
downloadwiimmfi-watcher-47ffcc64c0d443b16169f43848f1453ca8144031.tar
wiimmfi-watcher-47ffcc64c0d443b16169f43848f1453ca8144031.tar.gz
wiimmfi-watcher-47ffcc64c0d443b16169f43848f1453ca8144031.tar.bz2
finished designing fragments, need to start programming them soon
Diffstat (limited to 'app/src/main/res/layout/activity_main.xml')
-rw-r--r--app/src/main/res/layout/activity_main.xml54
1 files changed, 44 insertions, 10 deletions
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index 4fc2444..47d93ae 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -1,18 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<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:layout_width="match_parent"
android:layout_height="match_parent"
+ android:id="@+id/drawer_layout"
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.coordinatorlayout.widget.CoordinatorLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:fitsSystemWindows="true">
-</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file
+ <com.google.android.material.appbar.AppBarLayout
+ style="@style/Widget.MaterialComponents.AppBarLayout.Primary"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:fitsSystemWindows="true">
+
+ <com.google.android.material.appbar.MaterialToolbar
+ android:id="@+id/toolbar"
+ style="@style/Widget.MaterialComponents.Toolbar.Primary"
+ android:layout_width="match_parent"
+ android:layout_height="?attr/actionBarSize"
+ android:background="@android:color/transparent"
+ android:elevation="0dp"
+ app:menu="@menu/top_app_bar"
+ app:title="Wiimmfi Friend Codes" />
+
+ </com.google.android.material.appbar.AppBarLayout>
+
+ <androidx.fragment.app.FragmentContainerView
+ android:id="@+id/fragment_container2"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ app:layout_behavior="@string/appbar_scrolling_view_behavior" />
+
+ <androidx.fragment.app.FragmentContainerView
+ android:id="@+id/fragment_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ app:layout_behavior="@string/appbar_scrolling_view_behavior"
+ />
+
+ <!-- Screen content -->
+ <!-- Use app:layout_behavior="@string/appbar_scrolling_view_behavior" to fit below top app bar -->
+
+ </androidx.coordinatorlayout.widget.CoordinatorLayout>
+
+
+</androidx.drawerlayout.widget.DrawerLayout> \ No newline at end of file