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" /> - - -