From 822836a61c133e10ea68ef3a9fd8719bebac1049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Thu, 19 Sep 2024 19:21:50 +0100 Subject: [PATCH] Refactor PAI / vitality score charts --- .../activities/charts/PaiChartFragment.java | 6 + .../main/res/layout/fragment_pai_chart.xml | 442 +++++++++--------- 2 files changed, 218 insertions(+), 230 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/PaiChartFragment.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/PaiChartFragment.java index 29a4f8e93..7f78991ec 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/PaiChartFragment.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/PaiChartFragment.java @@ -138,6 +138,12 @@ public class PaiChartFragment extends AbstractChartFragment - + android:layout_marginTop="15dp" + android:gravity="center" + android:textSize="20sp" /> - + + + + + android:weightSum="2"> - - - - - - + android:orientation="vertical" + android:paddingLeft="20dip" + android:paddingTop="20dip" + android:paddingRight="20dip"> - + - - - - + android:layout_gravity="start" + android:layout_marginTop="20dip" + android:text="@string/stats_empty_value" + android:textSize="20sp" /> + android:layout_gravity="left" + android:text="@string/activity_summary_today" + android:textSize="12sp" /> + + + + + + android:layout_gravity="start" + android:layout_marginTop="20dip" + android:text="@string/stats_empty_value" + android:textSize="20sp" /> + + + + + + + + + + + + + + + android:layout_gravity="center|top" + android:layout_marginStart="1dp" + android:layout_marginEnd="1dp" + android:layout_weight="1" + android:gravity="center|top" + android:orientation="vertical"> - + android:layout_gravity="center" + android:gravity="center" + android:maxLines="2" + android:scrollHorizontally="false" + android:text="@string/stress_moderate" + android:textAllCaps="true" + android:textColor="@color/accent" + android:textStyle="bold" /> - - - - - - - - - + android:layout_gravity="center" + android:fontFamily="sans-serif-black" + android:gravity="center" + android:maxLines="1" + android:scrollHorizontally="false" + android:text="5" + android:textSize="24sp" /> - - - - - - - - - + android:layout_gravity="center" + android:fontFamily="sans-serif" + android:gravity="center" + android:maxLines="1" + android:scrollHorizontally="false" + android:text="10 min" + android:textSize="16sp" /> - + - + - + - + + + @@ -285,9 +266,10 @@ + android:layout_height="300dp" + android:layout_marginBottom="25dp" + android:layout_weight="2" /> - +