From 79a688bd97538d3d1002e1bf9ef9790c8788712e Mon Sep 17 00:00:00 2001 From: kalynstricklin Date: Tue, 7 Jul 2026 14:42:23 -0500 Subject: [PATCH 1/2] update datastream status card --- ...tatus_dot_background.xml => ic_circle.xml} | 0 .../res/layout/activity_app_status.xml | 12 +- .../res/layout/fragment_dashboard.xml | 7 +- .../res/layout/item_datastream.xml | 28 ++ .../res/layout/item_sensor_group.xml | 52 +++ .../res/layout/item_server_status.xml | 91 ++--- sensorhub-android-app/res/values/styles.xml | 13 +- .../sensorhub/android/DashboardFragment.java | 367 +++++++++++++----- 8 files changed, 419 insertions(+), 151 deletions(-) rename sensorhub-android-app/res/drawable/{status_dot_background.xml => ic_circle.xml} (100%) create mode 100644 sensorhub-android-app/res/layout/item_datastream.xml create mode 100644 sensorhub-android-app/res/layout/item_sensor_group.xml diff --git a/sensorhub-android-app/res/drawable/status_dot_background.xml b/sensorhub-android-app/res/drawable/ic_circle.xml similarity index 100% rename from sensorhub-android-app/res/drawable/status_dot_background.xml rename to sensorhub-android-app/res/drawable/ic_circle.xml diff --git a/sensorhub-android-app/res/layout/activity_app_status.xml b/sensorhub-android-app/res/layout/activity_app_status.xml index 69a569c..c4a64d8 100644 --- a/sensorhub-android-app/res/layout/activity_app_status.xml +++ b/sensorhub-android-app/res/layout/activity_app_status.xml @@ -55,7 +55,7 @@ android:id="@+id/sos_status_dot" android:layout_width="@dimen/status_dot_size" android:layout_height="@dimen/status_dot_size" - android:background="@drawable/status_dot_background" /> + android:background="@drawable/ic_circle" /> + android:background="@drawable/ic_circle" /> + android:background="@drawable/ic_circle" /> + android:background="@drawable/ic_circle" /> + android:background="@drawable/ic_circle" /> + android:background="@drawable/ic_circle" /> + android:background="@drawable/ic_circle" /> + android:background="@drawable/ic_circle" /> + app:tint="@android:color/white" + app:backgroundTint="@color/md_theme_surfaceVariant" /> diff --git a/sensorhub-android-app/res/layout/item_datastream.xml b/sensorhub-android-app/res/layout/item_datastream.xml new file mode 100644 index 0000000..361786e --- /dev/null +++ b/sensorhub-android-app/res/layout/item_datastream.xml @@ -0,0 +1,28 @@ + + + + + + + + diff --git a/sensorhub-android-app/res/layout/item_sensor_group.xml b/sensorhub-android-app/res/layout/item_sensor_group.xml new file mode 100644 index 0000000..b200401 --- /dev/null +++ b/sensorhub-android-app/res/layout/item_sensor_group.xml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + diff --git a/sensorhub-android-app/res/layout/item_server_status.xml b/sensorhub-android-app/res/layout/item_server_status.xml index c34d783..42de5d1 100644 --- a/sensorhub-android-app/res/layout/item_server_status.xml +++ b/sensorhub-android-app/res/layout/item_server_status.xml @@ -2,16 +2,15 @@ + android:layout_marginHorizontal="16dp" + android:layout_marginTop="8dp" + app:cardCornerRadius="16dp" + app:cardElevation="2dp" + app:strokeWidth="1dp" + app:strokeColor="?attr/colorOutlineVariant"> + android:orientation="horizontal" + android:padding="16dp"> - + + android:orientation="vertical"> + android:textAppearance="?attr/textAppearanceTitleMedium" + android:textColor="?attr/colorOnSurface"/> - + android:layout_marginTop="2dp" + android:textAppearance="?attr/textAppearanceBodySmall" + android:textColor="?attr/colorOnSurfaceVariant"/> - + - + + - + \ No newline at end of file diff --git a/sensorhub-android-app/res/values/styles.xml b/sensorhub-android-app/res/values/styles.xml index bdd6d7f..cc016c2 100644 --- a/sensorhub-android-app/res/values/styles.xml +++ b/sensorhub-android-app/res/values/styles.xml @@ -9,7 +9,6 @@ @style/PreferenceThemeOverlay @style/PreferenceCategoryNoPadding - @color/md_theme_primary @color/md_theme_onPrimary @color/md_theme_primaryContainer @@ -41,13 +40,11 @@ @color/md_theme_outline - @color/surface_base @color/surface_low false - true + false - @style/AppToolbar @style/AppCard @style/AppButton @@ -57,6 +54,7 @@ + +