aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-08-11 22:05:39 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-08-11 22:05:39 -0600
commitfb51cefd42871cc470253edbe9616706bfbd2361 (patch)
tree060d8848a9a630ffe2a1b41442c6f746822f9e12 /app/src/main/res/layout
parent5977cfeb9bfe5efcc3457d3fdf2d10f24e5ac395 (diff)
downloadwiimmfi-watcher-fb51cefd42871cc470253edbe9616706bfbd2361.tar
wiimmfi-watcher-fb51cefd42871cc470253edbe9616706bfbd2361.tar.gz
wiimmfi-watcher-fb51cefd42871cc470253edbe9616706bfbd2361.tar.bz2
figured out preferences, going to bed now
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_main.xml2
-rw-r--r--app/src/main/res/layout/activity_settings.xml68
-rw-r--r--app/src/main/res/layout/main_settings_fragment.xml32
3 files changed, 101 insertions, 1 deletions
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index bf5adcd..039941a 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -27,7 +27,7 @@
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:elevation="0dp"
- app:menu="@menu/top_app_bar"
+ app:menu="@menu/top_app_bar_main"
app:title="Wiimmfi Watcher"
app:titleTextColor="@color/white" />
diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml
new file mode 100644
index 0000000..327dc2e
--- /dev/null
+++ b/app/src/main/res/layout/activity_settings.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="utf-8"?>
+<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=".settings.SettingsActivity">
+
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:fitsSystemWindows="true">
+
+
+
+ <com.google.android.material.appbar.AppBarLayout
+ android:id="@+id/appBarLayout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:fitsSystemWindows="true"
+ app:layout_constraintTop_toTopOf="parent">
+
+ <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"
+ app:navigationIcon="@drawable/ic_baseline_arrow_back_24"
+ app:navigationIconTint="#FFFFFF"
+ android:elevation="0dp"
+ app:title="@string/settings_title"
+ app:titleTextColor="@color/white" />
+
+ </com.google.android.material.appbar.AppBarLayout>
+
+ <androidx.fragment.app.FragmentContainerView
+ android:id="@+id/fragmentContainerView"
+ android:name="me.brysonsteck.wiimmfiwatcher.settings.SettingsMainFragment"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/appBarLayout" />
+
+ <!-- <com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton-->
+ <!-- android:id="@+id/clear_button"-->
+ <!-- android:layout_width="wrap_content"-->
+ <!-- android:layout_height="wrap_content"-->
+ <!-- android:layout_gravity="bottom|right"-->
+ <!-- android:layout_margin="15dp"-->
+ <!-- android:foregroundTint="#FFFFFF"-->
+ <!-- android:text="Clear"-->
+ <!-- android:textColor="#FFFFFF"-->
+ <!-- app:backgroundTint="#1E88E5"-->
+ <!-- app:icon="@drawable/ic_baseline_clear_all_24"-->
+ <!-- app:iconTint="#FFFFFF"-->
+ <!-- app:layout_constraintBottom_toBottomOf="parent"-->
+ <!-- app:layout_constraintEnd_toEndOf="parent" />-->
+
+ <!-- Screen content -->
+ <!-- Use app:layout_behavior="@string/appbar_scrolling_view_behavior" to fit below top app bar -->
+
+ </androidx.constraintlayout.widget.ConstraintLayout>
+
+
+</androidx.drawerlayout.widget.DrawerLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/main_settings_fragment.xml b/app/src/main/res/layout/main_settings_fragment.xml
new file mode 100644
index 0000000..9d0a368
--- /dev/null
+++ b/app/src/main/res/layout/main_settings_fragment.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <Switch
+ android:id="@+id/switch1"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:text="Switch"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent" />
+
+ <ToggleButton
+ android:id="@+id/toggleButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="ToggleButton" />
+
+ <RadioGroup
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" >
+
+ </RadioGroup>
+
+ <Button
+ android:id="@+id/button"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Button" />
+</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file