Updated Pod Management Layout and cleaned up XML to make layout items match parent elements.
Added a few dynamic text elements for Pod Management interface to strings.xml
This commit is contained in:
parent
b3f0a0f4bc
commit
e02438cc8c
3 changed files with 229 additions and 219 deletions
|
@ -56,7 +56,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1.5"
|
android:layout_weight="1.5"
|
||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
android:paddingRight="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:text="@string/rileylink_status"
|
android:text="@string/rileylink_status"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -76,7 +77,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:paddingLeft="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:text="{fa-bluetooth-b}"
|
android:text="{fa-bluetooth-b}"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
@ -103,7 +105,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1.5"
|
android:layout_weight="1.5"
|
||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
android:paddingRight="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:text="@string/omnipod_overview_pod_address"
|
android:text="@string/omnipod_overview_pod_address"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -123,7 +126,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:paddingLeft="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -139,7 +143,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1.5"
|
android:layout_weight="1.5"
|
||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
android:paddingRight="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:text="@string/omnipod_lot"
|
android:text="@string/omnipod_lot"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -159,7 +164,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:paddingLeft="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -175,7 +181,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1.5"
|
android:layout_weight="1.5"
|
||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
android:paddingRight="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:text="@string/omnipod_tid"
|
android:text="@string/omnipod_tid"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -195,7 +202,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:paddingLeft="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -211,7 +219,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1.5"
|
android:layout_weight="1.5"
|
||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
android:paddingRight="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:text="@string/omnipod_overview_firmware_version"
|
android:text="@string/omnipod_overview_firmware_version"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -231,7 +240,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:paddingLeft="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -247,7 +257,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1.5"
|
android:layout_weight="1.5"
|
||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
android:paddingRight="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:text="@string/omnipod_overview_time_on_pod"
|
android:text="@string/omnipod_overview_time_on_pod"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -267,7 +278,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:paddingLeft="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -284,7 +296,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1.5"
|
android:layout_weight="1.5"
|
||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
android:paddingRight="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:text="@string/omnipod_overview_pod_expiry_date"
|
android:text="@string/omnipod_overview_pod_expiry_date"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -304,7 +317,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:paddingLeft="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -321,7 +335,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1.5"
|
android:layout_weight="1.5"
|
||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
android:paddingRight="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:text="@string/omnipod_overview_pod_status"
|
android:text="@string/omnipod_overview_pod_status"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -375,7 +390,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1.5"
|
android:layout_weight="1.5"
|
||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
android:paddingRight="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:text="@string/omnipod_overview_last_connection"
|
android:text="@string/omnipod_overview_last_connection"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -395,7 +411,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:paddingLeft="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -420,7 +437,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1.5"
|
android:layout_weight="1.5"
|
||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
android:paddingRight="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:text="@string/omnipod_overview_last_bolus"
|
android:text="@string/omnipod_overview_last_bolus"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -440,7 +458,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:paddingLeft="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -465,7 +484,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1.5"
|
android:layout_weight="1.5"
|
||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
android:paddingRight="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:text="@string/omnipod_overview_base_basal_rate"
|
android:text="@string/omnipod_overview_base_basal_rate"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -485,7 +505,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:paddingLeft="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -510,7 +531,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1.5"
|
android:layout_weight="1.5"
|
||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
android:paddingRight="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:text="@string/omnipod_overview_temp_basal_rate"
|
android:text="@string/omnipod_overview_temp_basal_rate"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -530,7 +552,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:paddingLeft="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -555,7 +578,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1.5"
|
android:layout_weight="1.5"
|
||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
android:paddingRight="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:text="@string/omnipod_overview_reservoir"
|
android:text="@string/omnipod_overview_reservoir"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -575,7 +599,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:paddingLeft="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -600,7 +625,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1.5"
|
android:layout_weight="1.5"
|
||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
android:paddingRight="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:text="@string/omnipod_overview_total_delivered"
|
android:text="@string/omnipod_overview_total_delivered"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -620,7 +646,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:paddingLeft="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -645,7 +672,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1.5"
|
android:layout_weight="1.5"
|
||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
android:paddingRight="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:text="@string/omnipod_overview_errors"
|
android:text="@string/omnipod_overview_errors"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -665,7 +693,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:paddingLeft="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -690,7 +719,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1.5"
|
android:layout_weight="1.5"
|
||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
android:paddingRight="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:text="@string/omnipod_overview_pod_active_alerts"
|
android:text="@string/omnipod_overview_pod_active_alerts"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -710,7 +740,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:paddingLeft="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@ -802,7 +833,7 @@
|
||||||
android:drawableTop="@drawable/icon_omnipod_overview_suspend_delivery"
|
android:drawableTop="@drawable/icon_omnipod_overview_suspend_delivery"
|
||||||
android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding"
|
android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding"
|
||||||
android:text="@string/omnipod_overview_button_suspend_delivery"
|
android:text="@string/omnipod_overview_button_suspend_delivery"
|
||||||
android:visibility="gone" />
|
android:visibility="visible" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
|
@ -1,214 +1,192 @@
|
||||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
android:id="@+id/omnipod_pod_management"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
tools:context="info.nightscout.androidaps.plugins.pump.omnipod.ui.PodManagementActivity">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<ScrollView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="0dp"
|
||||||
|
android:layout_marginLeft="10dp"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
|
android:layout_marginRight="10dp"
|
||||||
|
android:layout_weight="0.5"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/omnipod_pod_management_title"
|
||||||
|
android:textAlignment="center"
|
||||||
|
android:textSize="12pt"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:id="@+id/omnipod_pod_management_waiting_for_rl_layout"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
|
<ProgressBar
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="40dp"
|
||||||
android:orientation="vertical">
|
android:layout_marginLeft="25dp"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
|
android:layout_marginRight="25dp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="10dp"
|
||||||
android:layout_marginTop="20dp"
|
android:layout_marginTop="10dp"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="10dp"
|
||||||
android:layout_weight="0.5"
|
android:layout_weight="0.5"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="@string/omnipod_pod_management_title"
|
android:text="@string/omnipod_pod_management_waiting_for_rileylink_connection"
|
||||||
android:textAlignment="center"
|
android:textAlignment="center"
|
||||||
android:textSize="12pt"
|
android:textSize="8pt" />
|
||||||
android:textStyle="bold" />
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<TextView
|
||||||
android:id="@+id/omnipod_pod_management_waiting_for_rl_layout"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_marginTop="15dp"
|
||||||
android:orientation="vertical"
|
android:paddingStart="15dp"
|
||||||
android:visibility="gone">
|
android:paddingEnd="15dp"
|
||||||
|
android:text="@string/omnipod_pod_management_heading_actions" />
|
||||||
|
|
||||||
<ProgressBar
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:id="@+id/action_buttons_layout"
|
||||||
android:layout_height="40dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_marginLeft="25dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="20dp"
|
android:orientation="horizontal"
|
||||||
android:layout_marginRight="25dp" />
|
android:paddingStart="10dp"
|
||||||
|
android:paddingEnd="10dp">
|
||||||
|
|
||||||
<TextView
|
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
||||||
android:layout_width="match_parent"
|
android:id="@+id/omnipod_pod_management_button_activate_pod"
|
||||||
android:layout_height="0dp"
|
style="?android:attr/buttonStyle"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_height="fill_parent"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginEnd="4dp"
|
||||||
android:layout_weight="0.5"
|
android:layout_weight="0.5"
|
||||||
android:gravity="center"
|
android:drawableTop="@drawable/icon_pod_management_activate_pod"
|
||||||
android:text="@string/omnipod_pod_management_waiting_for_rileylink_connection"
|
android:text="@string/omnipod_pod_management_button_activate_pod"
|
||||||
android:textAlignment="center"
|
android:textAllCaps="false" />
|
||||||
android:textSize="8pt" />
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/action_buttons_layout"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<TextView
|
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
||||||
android:layout_width="match_parent"
|
android:id="@+id/omnipod_pod_management_button_deactivate_pod"
|
||||||
android:layout_height="match_parent"
|
style="?android:attr/buttonStyle"
|
||||||
android:layout_marginTop="15dp"
|
android:layout_width="match_parent"
|
||||||
android:paddingStart="15dp"
|
android:layout_height="fill_parent"
|
||||||
android:paddingEnd="15dp"
|
android:layout_marginEnd="4dp"
|
||||||
android:text="@string/omnipod_pod_management_heading_actions" />
|
android:layout_weight="0.5"
|
||||||
|
android:drawableTop="@drawable/icon_pod_management_deactivate_pod"
|
||||||
|
android:text="@string/omnipod_pod_management_button_deactivate_pod"
|
||||||
|
android:textAllCaps="false" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<androidx.gridlayout.widget.GridLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:padding="10dip"
|
|
||||||
app:columnCount="2">
|
|
||||||
|
|
||||||
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
android:layout_width="match_parent"
|
||||||
android:id="@+id/omnipod_pod_management_button_activate_pod"
|
android:layout_height="wrap_content"
|
||||||
style="@style/ButtonSmallFontStyle"
|
android:orientation="horizontal"
|
||||||
android:layout_width="0dp"
|
android:paddingStart="10dp"
|
||||||
android:layout_height="match_parent"
|
android:paddingEnd="10dp">
|
||||||
android:layout_weight="1"
|
|
||||||
android:drawableTop="@drawable/icon_pod_management_activate_pod"
|
|
||||||
android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding"
|
|
||||||
android:text="@string/omnipod_pod_management_button_activate_pod"
|
|
||||||
android:textAllCaps="false"
|
|
||||||
|
|
||||||
app:layout_column="0"
|
<Button
|
||||||
app:layout_columnWeight="1"
|
android:id="@+id/omnipod_pod_management_button_play_test_beep"
|
||||||
app:layout_gravity="fill"
|
style="?android:attr/buttonStyle"
|
||||||
app:layout_row="0" />
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
|
android:layout_marginEnd="4dp"
|
||||||
|
android:layout_weight="0.5"
|
||||||
|
android:drawableTop="@drawable/icon_pod_management_play_test_beep"
|
||||||
|
android:text="@string/omnipod_pod_management_button_play_test_beep"
|
||||||
|
android:textAllCaps="false" />
|
||||||
|
|
||||||
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
|
||||||
android:id="@+id/omnipod_pod_management_button_deactivate_pod"
|
|
||||||
style="@style/ButtonSmallFontStyle"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:drawableTop="@drawable/icon_pod_management_deactivate_pod"
|
|
||||||
android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding"
|
|
||||||
android:text="@string/omnipod_pod_management_button_deactivate_pod"
|
|
||||||
android:textAllCaps="false"
|
|
||||||
|
|
||||||
app:layout_column="1"
|
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
||||||
app:layout_columnWeight="1"
|
android:id="@+id/omnipod_pod_management_button_discard_pod"
|
||||||
app:layout_gravity="fill"
|
style="?android:attr/buttonStyle"
|
||||||
app:layout_row="0" />
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
|
android:layout_marginEnd="4dp"
|
||||||
|
android:layout_weight="0.5"
|
||||||
|
android:drawableTop="@drawable/icon_pod_management_discard_pod"
|
||||||
|
android:text="@string/omnipod_pod_management_button_discard_pod"
|
||||||
|
android:textAllCaps="false" />
|
||||||
|
|
||||||
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
</LinearLayout>
|
||||||
android:id="@+id/omnipod_pod_management_button_play_test_beep"
|
|
||||||
style="@style/ButtonSmallFontStyle"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:drawableTop="@drawable/icon_pod_management_play_test_beep"
|
|
||||||
android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding"
|
|
||||||
android:text="@string/omnipod_pod_management_button_play_test_beep"
|
|
||||||
android:textAllCaps="false"
|
|
||||||
|
|
||||||
app:layout_column="0"
|
<TextView
|
||||||
app:layout_columnWeight="1"
|
android:layout_width="match_parent"
|
||||||
app:layout_gravity="fill"
|
android:layout_height="match_parent"
|
||||||
app:layout_row="1" />
|
android:layout_marginTop="15dp"
|
||||||
|
android:paddingStart="15dp"
|
||||||
|
android:paddingEnd="15dp"
|
||||||
|
android:text="@string/omnipod_pod_management_heading_tools" />
|
||||||
|
|
||||||
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
<LinearLayout
|
||||||
android:id="@+id/omnipod_pod_management_button_discard_pod"
|
android:layout_width="match_parent"
|
||||||
style="@style/ButtonSmallFontStyle"
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="0dp"
|
android:orientation="horizontal"
|
||||||
android:layout_height="match_parent"
|
android:paddingStart="10dp"
|
||||||
android:layout_weight="1"
|
android:paddingEnd="10dp">
|
||||||
android:drawableTop="@drawable/icon_pod_management_discard_pod"
|
|
||||||
android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding"
|
|
||||||
android:text="@string/omnipod_pod_management_button_discard_pod"
|
|
||||||
android:textAllCaps="false"
|
|
||||||
|
|
||||||
app:layout_column="1"
|
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
||||||
app:layout_columnWeight="1"
|
android:id="@+id/omnipod_pod_management_button_pod_history"
|
||||||
app:layout_gravity="fill"
|
style="?android:attr/buttonStyle"
|
||||||
app:layout_row="1" />
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
|
android:layout_marginEnd="4dp"
|
||||||
|
android:layout_weight="0.5"
|
||||||
|
android:drawableTop="@drawable/icon_pod_management_pod_history"
|
||||||
|
android:text="@string/omnipod_pod_management_button_pod_history"
|
||||||
|
android:textAllCaps="false" />
|
||||||
|
|
||||||
</androidx.gridlayout.widget.GridLayout>
|
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
||||||
|
android:id="@+id/omnipod"
|
||||||
|
style="?android:attr/buttonStyle"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
|
android:layout_marginEnd="4dp"
|
||||||
|
android:layout_weight="0.5"
|
||||||
|
android:drawableTop="@drawable/icon_pod_management_rl_stats"
|
||||||
|
android:text="@string/omnipod_pod_management_button_riley_link_stats"
|
||||||
|
android:textAllCaps="false" />
|
||||||
|
|
||||||
<TextView
|
</LinearLayout>
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_marginTop="15dp"
|
|
||||||
android:paddingStart="15dp"
|
|
||||||
android:paddingEnd="15dp"
|
|
||||||
android:text="@string/omnipod_pod_management_heading_tools" />
|
|
||||||
|
|
||||||
<androidx.gridlayout.widget.GridLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="10dip"
|
android:orientation="horizontal"
|
||||||
app:columnCount="2">
|
android:paddingStart="10dp"
|
||||||
|
android:paddingEnd="10dp">
|
||||||
|
|
||||||
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
<Button
|
||||||
android:id="@+id/omnipod_pod_management_button_pod_history"
|
android:id="@+id/omnipod_pod_management_button_pulse_log"
|
||||||
style="@style/ButtonSmallFontStyle"
|
style="?android:attr/buttonStyle"
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="fill_parent"
|
||||||
android:layout_weight="1"
|
android:layout_marginEnd="4dp"
|
||||||
android:drawableTop="@drawable/icon_pod_management_pod_history"
|
android:layout_weight="0.5"
|
||||||
android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding"
|
android:drawableTop="@drawable/icon_pod_management_pulse_log"
|
||||||
android:text="@string/omnipod_pod_management_button_pod_history"
|
android:text="@string/omnipod_pod_management_button_read_pulse_log"
|
||||||
android:textAllCaps="false"
|
android:textAllCaps="false"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
app:layout_column="0"
|
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
||||||
app:layout_columnWeight="1"
|
android:id="@+id/omnipod_pod_management_button_reset_rileylink_config"
|
||||||
app:layout_gravity="fill"
|
style="?android:attr/buttonStyle"
|
||||||
app:layout_row="2" />
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
|
android:layout_marginEnd="4dp"
|
||||||
|
android:layout_weight="0.5"
|
||||||
|
android:drawableTop="@drawable/icon_pod_activity_reset_rileylink_config"
|
||||||
|
android:text="@string/omnipod_pod_management_button_reset_riley_link_config"
|
||||||
|
android:textAllCaps="false" />
|
||||||
|
|
||||||
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
</LinearLayout>
|
||||||
android:id="@+id/omnipod_pod_management_button_rileylink_stats"
|
|
||||||
style="@style/ButtonSmallFontStyle"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:drawableTop="@drawable/icon_pod_management_rl_stats"
|
|
||||||
android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding"
|
|
||||||
android:text="@string/omnipod_pod_management_button_riley_link_stats"
|
|
||||||
android:textAllCaps="false"
|
|
||||||
|
|
||||||
app:layout_column="1"
|
</LinearLayout>
|
||||||
app:layout_columnWeight="1"
|
|
||||||
app:layout_gravity="fill"
|
|
||||||
app:layout_row="2" />
|
|
||||||
|
|
||||||
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
|
||||||
android:id="@+id/omnipod_pod_management_button_pulse_log"
|
|
||||||
style="@style/ButtonSmallFontStyle"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:drawableTop="@drawable/icon_pod_management_pulse_log"
|
|
||||||
android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding"
|
|
||||||
android:text="@string/omnipod_pod_management_button_read_pulse_log"
|
|
||||||
android:textAllCaps="false"
|
|
||||||
android:visibility="gone"
|
|
||||||
|
|
||||||
app:layout_column="0"
|
|
||||||
app:layout_columnWeight="1"
|
|
||||||
app:layout_gravity="fill"
|
|
||||||
app:layout_row="3" />
|
|
||||||
|
|
||||||
</androidx.gridlayout.widget.GridLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</ScrollView>
|
|
||||||
|
|
||||||
</FrameLayout>
|
|
|
@ -185,6 +185,7 @@
|
||||||
<string name="omnipod_pod_management_button_discard_pod">Discard Pod</string>
|
<string name="omnipod_pod_management_button_discard_pod">Discard Pod</string>
|
||||||
<string name="omnipod_pod_management_button_pod_history">Pod history</string>
|
<string name="omnipod_pod_management_button_pod_history">Pod history</string>
|
||||||
<string name="omnipod_pod_management_button_riley_link_stats">RileyLink stats</string>
|
<string name="omnipod_pod_management_button_riley_link_stats">RileyLink stats</string>
|
||||||
|
<string name="omnipod_pod_management_button_reset_riley_link_config">Reest RileyLink Config</string>
|
||||||
<string name="omnipod_pod_management_button_read_pulse_log">Read pulse log</string>
|
<string name="omnipod_pod_management_button_read_pulse_log">Read pulse log</string>
|
||||||
<string name="omnipod_pod_management_button_reading_pulse_log">Reading pulse log…</string>
|
<string name="omnipod_pod_management_button_reading_pulse_log">Reading pulse log…</string>
|
||||||
<string name="omnipod_pod_management_discard_pod_confirmation">If you discard the Pod, you will not be able to communicate with it anymore. You should only do this when all communication with the Pod persistently fails. If you can still communicate with the Pod, please use the <b>Deactivate Pod</b> option.\n\nIf you wish to proceed, please make sure to remove the Pod from your body!</string>
|
<string name="omnipod_pod_management_discard_pod_confirmation">If you discard the Pod, you will not be able to communicate with it anymore. You should only do this when all communication with the Pod persistently fails. If you can still communicate with the Pod, please use the <b>Deactivate Pod</b> option.\n\nIf you wish to proceed, please make sure to remove the Pod from your body!</string>
|
||||||
|
|
Loading…
Reference in a new issue