From 4fafdb37fb23d12469cc1ac4b23efe9583f87407 Mon Sep 17 00:00:00 2001 From: Javier Date: Fri, 26 Mar 2021 15:21:13 +0100 Subject: Add status icons and clearer status messages --- app/src/main/res/drawable/ic_baseline_check_24.xml | 10 ++++++ app/src/main/res/drawable/ic_baseline_error_24.xml | 10 ++++++ app/src/main/res/layout/activity_main.xml | 27 ++++++++------- app/src/main/res/layout/fragment_device.xml | 38 ++++++++++++++++++++-- app/src/main/res/values/strings.xml | 4 ++- 5 files changed, 74 insertions(+), 15 deletions(-) create mode 100644 app/src/main/res/drawable/ic_baseline_check_24.xml create mode 100644 app/src/main/res/drawable/ic_baseline_error_24.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/drawable/ic_baseline_check_24.xml b/app/src/main/res/drawable/ic_baseline_check_24.xml new file mode 100644 index 0000000..0432fa6 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_check_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_baseline_error_24.xml b/app/src/main/res/drawable/ic_baseline_error_24.xml new file mode 100644 index 0000000..b915a34 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_error_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index fe4da78..aecd8c6 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -6,19 +6,24 @@ android:layout_height="match_parent" tools:context=".MainActivity"> - - - + app:layout_behavior="@string/appbar_scrolling_view_behavior"> + + + + + android:orientation="horizontal" + android:padding="16dp"> + + + + + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + -- %1$s °C + Last 24h: + Signal: Disconnected Disconnected Searching - Tracking + Connected Processing request Unrecognized Unknown state -- cgit v1.2.3