From 2e687fe68725c5589747ce9743376f9cc9d467e6 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 21 Dec 2019 15:26:41 +0100 Subject: [PATCH] DanaRHistoryActivity layout refactor --- .../activities/DanaRHistoryActivity.java | 6 +- .../main/res/layout/danar_historyactivity.xml | 88 +++++++++++-------- .../main/res/layout/dialog_bolusprogress.xml | 2 +- .../main/res/layout/dialog_calibration.xml | 2 +- app/src/main/res/layout/dialog_carbs.xml | 2 +- app/src/main/res/layout/dialog_care.xml | 2 +- app/src/main/res/layout/dialog_error.xml | 2 +- .../main/res/layout/dialog_extendedbolus.xml | 2 +- app/src/main/res/layout/dialog_fill.xml | 2 +- app/src/main/res/layout/dialog_insulin.xml | 2 +- .../main/res/layout/dialog_profileswitch.xml | 2 +- .../main/res/layout/dialog_profileviewer.xml | 2 +- app/src/main/res/layout/dialog_tempbasal.xml | 2 +- app/src/main/res/layout/dialog_temptarget.xml | 2 +- app/src/main/res/layout/dialog_treatment.xml | 2 +- app/src/main/res/layout/dialog_wizard.xml | 2 +- app/src/main/res/values/colors.xml | 2 +- app/src/main/res/values/strings.xml | 2 +- 18 files changed, 71 insertions(+), 55 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/pump/danaR/activities/DanaRHistoryActivity.java b/app/src/main/java/info/nightscout/androidaps/plugins/pump/danaR/activities/DanaRHistoryActivity.java index 97f029bd8c..30e3cc4851 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/pump/danaR/activities/DanaRHistoryActivity.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/pump/danaR/activities/DanaRHistoryActivity.java @@ -108,9 +108,9 @@ public class DanaRHistoryActivity extends NoSplashAppCompatActivity { super.onCreate(savedInstanceState); setContentView(R.layout.danar_historyactivity); - historyTypeSpinner = findViewById(R.id.danar_historytype); - statusView = findViewById(R.id.danar_historystatus); - reloadButton = findViewById(R.id.danar_historyreload); + historyTypeSpinner = findViewById(R.id.danar_history_spinner); + statusView = findViewById(R.id.danar_history_status); + reloadButton = findViewById(R.id.danar_history_reload); recyclerView = findViewById(R.id.danar_history_recyclerview); recyclerView.setHasFixedSize(true); diff --git a/app/src/main/res/layout/danar_historyactivity.xml b/app/src/main/res/layout/danar_historyactivity.xml index 3324a98029..d879b011cb 100644 --- a/app/src/main/res/layout/danar_historyactivity.xml +++ b/app/src/main/res/layout/danar_historyactivity.xml @@ -3,50 +3,74 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" - android:paddingBottom="@dimen/activity_vertical_margin" - android:paddingTop="@dimen/activity_vertical_margin" tools:context=".plugins.pump.danaR.activities.DanaRHistoryActivity"> - + + + + + + + + + + - - - + android:layout_marginEnd="20dp" /> @@ -54,23 +78,15 @@ android:id="@+id/danar_history_recyclerview" android:layout_width="match_parent" android:layout_height="fill_parent" - android:layout_above="@+id/danar_historybuttons" - android:layout_below="@+id/danar_historystatus" /> + android:layout_below="@+id/danar_history_status" /> - - -