From e3313a65a8ea0b6ef71609ae536c946a87833913 Mon Sep 17 00:00:00 2001 From: Avior Date: Mon, 9 Jan 2023 17:32:28 +0100 Subject: [PATCH] feat: Change inner work to allow more depictions of datas --- README.md | 2 +- .../debug/res/layout/fragment_list_weight.xml | 94 ++++++++++++++++ .../openhealth/ui/steps/StepsHomeFragment.kt | 4 +- .../ui/weight/ListWeightFragment.kt | 102 ++++++++++++++---- .../ui/weight/ListWeightViewModel.kt | 17 +++ .../java/com/dzeio/openhealth/units/Units.kt | 2 +- .../main/res/values/health_permissions.xml | 9 -- .../main/java/com/dzeio/charts/ChartView.kt | 13 ++- .../com/dzeio/charts/ChartViewInterface.kt | 5 + .../main/java/com/dzeio/charts/axis/XAxis.kt | 47 +++++--- .../com/dzeio/charts/axis/XAxisInterface.kt | 32 +++--- .../java/com/dzeio/charts/series/BarSerie.kt | 19 +--- .../java/com/dzeio/charts/series/BaseSerie.kt | 28 +++-- .../java/com/dzeio/charts/series/LineSerie.kt | 74 +++++++++++++ 14 files changed, 362 insertions(+), 86 deletions(-) create mode 100644 app/src/debug/res/layout/fragment_list_weight.xml delete mode 100644 app/src/main/res/values/health_permissions.xml create mode 100644 charts/src/main/java/com/dzeio/charts/series/LineSerie.kt diff --git a/README.md b/README.md index 8cf4091..db7a3f0 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Permissions requests are for specifics usage and are only requests the first tim | Permission | Why is it requested | |:--------------------:|:-----------------------------------------------------------| | ACTIVITY_RECOGNITION | Device Steps Usage | - | INTERNET | Food fetching from OpenFoodFact | +| INTERNET | Food fetching from OpenFoodFact | | POST_NOTIFICATIONS | send notifications for water intake and device steps usage | No other permissions are used. diff --git a/app/src/debug/res/layout/fragment_list_weight.xml b/app/src/debug/res/layout/fragment_list_weight.xml new file mode 100644 index 0000000..c65def0 --- /dev/null +++ b/app/src/debug/res/layout/fragment_list_weight.xml @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + +