From 29d5c5f76a3926e64ad95c99260fb2c3353f810b Mon Sep 17 00:00:00 2001 From: Andries Smit Date: Mon, 31 Jan 2022 13:20:00 +0100 Subject: [PATCH] Improve statuslight alligning and spacing --- .../layout/overview_statuslights_layout.xml | 76 +++++++++---------- 1 file changed, 34 insertions(+), 42 deletions(-) diff --git a/app/src/main/res/layout/overview_statuslights_layout.xml b/app/src/main/res/layout/overview_statuslights_layout.xml index 53794cfb61..0738364e34 100644 --- a/app/src/main/res/layout/overview_statuslights_layout.xml +++ b/app/src/main/res/layout/overview_statuslights_layout.xml @@ -1,6 +1,7 @@ + android:focusable="true" + android:gravity="center_horizontal"> @@ -31,9 +31,8 @@ android:id="@+id/cannula_age" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:paddingStart="1dp" - android:paddingEnd="2dp" - android:textSize="14sp" /> + android:lines="1" + tools:text="1d12h" /> @@ -41,59 +40,55 @@ android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_weight="1" - android:focusable="true"> + android:focusable="true" + android:gravity="center_horizontal"> + android:lines="1" + tools:text="12h" /> + android:lines="1" + android:paddingStart="2dp" + tools:text="50+U" /> + + android:focusable="true" + android:gravity="center_horizontal"> + android:lines="1" + tools:text="1d12h" /> @@ -101,34 +96,31 @@ android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_weight="1" - android:focusable="true"> + android:focusable="true" + android:gravity="center_horizontal"> + android:lines="1" + tools:text="-" /> + android:lines="1" + android:paddingStart="2dp" + tools:text="100%" />