From fb51cefd42871cc470253edbe9616706bfbd2361 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Wed, 11 Aug 2021 22:05:39 -0600 Subject: figured out preferences, going to bed now --- .../res/drawable/ic_baseline_arrow_back_24.xml | 5 ++ .../main/res/drawable/ic_baseline_settings_24.xml | 5 ++ app/src/main/res/layout/activity_main.xml | 2 +- app/src/main/res/layout/activity_settings.xml | 68 ++++++++++++++++++++++ app/src/main/res/layout/main_settings_fragment.xml | 32 ++++++++++ app/src/main/res/menu/top_app_bar.xml | 11 ---- app/src/main/res/menu/top_app_bar_main.xml | 18 ++++++ app/src/main/res/menu/top_app_bar_settings.xml | 4 ++ app/src/main/res/values/strings.xml | 2 + app/src/main/res/xml/preferences.xml | 4 ++ 10 files changed, 139 insertions(+), 12 deletions(-) create mode 100644 app/src/main/res/drawable/ic_baseline_arrow_back_24.xml create mode 100644 app/src/main/res/drawable/ic_baseline_settings_24.xml create mode 100644 app/src/main/res/layout/activity_settings.xml create mode 100644 app/src/main/res/layout/main_settings_fragment.xml delete mode 100644 app/src/main/res/menu/top_app_bar.xml create mode 100644 app/src/main/res/menu/top_app_bar_main.xml create mode 100644 app/src/main/res/menu/top_app_bar_settings.xml create mode 100644 app/src/main/res/xml/preferences.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/drawable/ic_baseline_arrow_back_24.xml b/app/src/main/res/drawable/ic_baseline_arrow_back_24.xml new file mode 100644 index 0000000..31e7df2 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_arrow_back_24.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/drawable/ic_baseline_settings_24.xml b/app/src/main/res/drawable/ic_baseline_settings_24.xml new file mode 100644 index 0000000..b240b83 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_settings_24.xml @@ -0,0 +1,5 @@ + + + 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 @@ + + + + + + + + + + + +