From 8b94e77ca7a6f3616cf40def3688d208cfdf1282 Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Sun, 29 Nov 2020 17:23:03 +0200 Subject: [PATCH] Add mock settings activity. --- NucuHub.Android/app/build.gradle | 1 + .../app/src/main/AndroidManifest.xml | 8 +++- .../dev/nuculabs/nucuhub/MainActivity.java | 18 +++++++ .../nuculabs/nucuhub/SettingsActivity.java | 47 +++++++++++++++++++ .../src/main/res/layout/settings_activity.xml | 34 ++++++++++++++ .../app/src/main/res/values/arrays.xml | 12 +++++ .../app/src/main/res/values/strings.xml | 20 +++++++- .../app/src/main/res/values/styles.xml | 6 +-- .../app/src/main/res/xml/backup_rules.xml | 5 ++ .../app/src/main/res/xml/root_preferences.xml | 38 +++++++++++++++ 10 files changed, 183 insertions(+), 6 deletions(-) create mode 100644 NucuHub.Android/app/src/main/java/dev/nuculabs/nucuhub/SettingsActivity.java create mode 100644 NucuHub.Android/app/src/main/res/layout/settings_activity.xml create mode 100644 NucuHub.Android/app/src/main/res/values/arrays.xml create mode 100644 NucuHub.Android/app/src/main/res/xml/backup_rules.xml create mode 100644 NucuHub.Android/app/src/main/res/xml/root_preferences.xml diff --git a/NucuHub.Android/app/build.gradle b/NucuHub.Android/app/build.gradle index 6d6215a..ddf7b06 100644 --- a/NucuHub.Android/app/build.gradle +++ b/NucuHub.Android/app/build.gradle @@ -51,6 +51,7 @@ dependencies { implementation 'androidx.navigation:navigation-fragment:2.1.0' implementation 'androidx.navigation:navigation-ui:2.1.0' implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0' + implementation 'androidx.preference:preference:1.1.0' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' diff --git a/NucuHub.Android/app/src/main/AndroidManifest.xml b/NucuHub.Android/app/src/main/AndroidManifest.xml index 0979990..006bee1 100644 --- a/NucuHub.Android/app/src/main/AndroidManifest.xml +++ b/NucuHub.Android/app/src/main/AndroidManifest.xml @@ -2,15 +2,21 @@ - + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/NucuHub.Android/app/src/main/res/values/arrays.xml b/NucuHub.Android/app/src/main/res/values/arrays.xml new file mode 100644 index 0000000..6cf9ed4 --- /dev/null +++ b/NucuHub.Android/app/src/main/res/values/arrays.xml @@ -0,0 +1,12 @@ + + + + Reply + Reply to all + + + + reply + reply_all + + \ No newline at end of file diff --git a/NucuHub.Android/app/src/main/res/values/strings.xml b/NucuHub.Android/app/src/main/res/values/strings.xml index 646ead3..9aa8508 100644 --- a/NucuHub.Android/app/src/main/res/values/strings.xml +++ b/NucuHub.Android/app/src/main/res/values/strings.xml @@ -7,10 +7,11 @@ denis@nuculabs.dev Navigation header Settings - - Environment Sensor Gallery Slideshow + + + Environment Sensor humidity image temperature icon barometer icon @@ -19,4 +20,19 @@ Celsius hPa VOC kΩ + SettingsActivity + + + Messages + Sync + + + Your signature + Default reply action + + + Sync email periodically + Download incoming attachments + Automatically download attachments for incoming emails + Only download attachments when manually requested \ No newline at end of file diff --git a/NucuHub.Android/app/src/main/res/values/styles.xml b/NucuHub.Android/app/src/main/res/values/styles.xml index db11353..d14d815 100644 --- a/NucuHub.Android/app/src/main/res/values/styles.xml +++ b/NucuHub.Android/app/src/main/res/values/styles.xml @@ -5,12 +5,12 @@ @color/colorPrimary @color/colorPrimaryDark @color/colorAccent + -