2020-05-03 00:32:26 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:id="@+id/info_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal" >
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_bg"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="00.0"
|
|
|
|
android:textSize="60sp"
|
|
|
|
android:textStyle="bold"
|
2020-12-07 22:42:04 +01:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/overview_delta_large"
|
2020-05-03 00:32:26 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
2020-08-08 19:09:21 +02:00
|
|
|
|
2020-12-07 22:42:04 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_delta_large"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="(+1.0)"
|
|
|
|
android:textSize="60sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/overview_bg"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/overview_arrow"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_bg"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/overview_bg" />
|
|
|
|
|
|
|
|
|
2020-08-08 19:09:21 +02:00
|
|
|
<ImageView
|
2020-05-03 00:32:26 +02:00
|
|
|
android:id="@+id/overview_arrow"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-08-08 19:09:21 +02:00
|
|
|
android:layout_gravity="center_vertical"
|
2020-05-03 00:32:26 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/overview_deltas_llayout"
|
|
|
|
app:layout_constraintHorizontal_bias="0.0"
|
2020-12-07 22:42:04 +01:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_delta_large"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/overview_delta_large"
|
2020-08-08 19:09:21 +02:00
|
|
|
android:paddingTop="18dp"
|
2020-10-19 19:24:33 +02:00
|
|
|
app:srcCompat="@drawable/ic_flat" />
|
2020-05-03 00:32:26 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/overview_deltas_llayout"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
2020-11-23 13:24:38 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/overview_bg"
|
2020-05-03 00:32:26 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/overview_apsmode_llayout"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_arrow"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_timeago"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-07-08 22:29:26 +02:00
|
|
|
android:layout_gravity="center_horizontal"
|
2020-05-03 00:32:26 +02:00
|
|
|
android:text="n/a"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
|
|
|
|
|
2020-06-25 18:16:10 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
2020-05-03 00:32:26 +02:00
|
|
|
|
2020-06-27 01:42:39 +02:00
|
|
|
<LinearLayout
|
2020-06-25 18:16:10 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-06-27 01:42:39 +02:00
|
|
|
android:orientation="vertical">
|
2020-06-25 18:16:10 +02:00
|
|
|
|
2020-06-27 01:42:39 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:textAlignment="textEnd"
|
|
|
|
android:text="Δ: "
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
|
2020-06-25 18:16:10 +02:00
|
|
|
|
2020-06-27 01:42:39 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:textAlignment="textEnd"
|
|
|
|
android:text="15m Δ: \n40m Δ: "
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2020-06-25 18:16:10 +02:00
|
|
|
|
2020-06-27 01:42:39 +02:00
|
|
|
<LinearLayout
|
2020-06-25 18:16:10 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-06-27 01:42:39 +02:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_delta"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:textAlignment="textEnd"
|
|
|
|
android:text="n/a"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_avgdelta"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:textAlignment="textEnd"
|
|
|
|
android:text="n/a"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-06-25 18:16:10 +02:00
|
|
|
</LinearLayout>
|
2020-05-03 00:32:26 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/overview_apsmode_llayout"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="vertical"
|
2020-11-23 13:24:38 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/overview_bg"
|
2020-11-22 20:48:36 +01:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/overview_time_llayout"
|
2020-05-03 00:32:26 +02:00
|
|
|
app:layout_constraintStart_toEndOf="@id/overview_deltas_llayout"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/overview_apsmode"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginBottom="-4dp"
|
2020-10-19 19:24:33 +02:00
|
|
|
app:srcCompat="@drawable/ic_loop_closed" />
|
2020-05-03 00:32:26 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_apsmode_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:paddingTop="3dp"
|
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:text="Open Loop"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-11-22 20:48:36 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/overview_time_llayout"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="vertical"
|
2020-11-23 13:24:38 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/overview_bg"
|
2020-11-22 20:48:36 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/overview_apsmode_llayout"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_time"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="-10dp"
|
|
|
|
android:layout_marginBottom="-10dp"
|
|
|
|
android:text="8:00 PM"
|
|
|
|
android:textSize="40dp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_timeagoshort"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="-5dp"
|
|
|
|
android:layout_marginBottom="-5dp"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:text="(-5)"
|
|
|
|
android:textSize="30sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-05-03 00:32:26 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/overview_iob_llayout"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="vertical"
|
2020-11-23 13:24:38 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2020-05-03 00:32:26 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/overview_cob_llayout"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/overview_bg">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
2020-10-19 19:24:33 +02:00
|
|
|
app:srcCompat="@drawable/ic_bolus" />
|
2020-05-03 00:32:26 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_iob"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:paddingTop="3dp"
|
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:text="n/a"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/overview_cob_llayout"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="vertical"
|
2020-11-23 13:24:38 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2020-05-03 00:32:26 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/overview_basal_llayout"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_iob_llayout"
|
2020-11-22 20:48:36 +01:00
|
|
|
app:layout_constraintTop_toTopOf="@+id/overview_iob_llayout">
|
2020-05-03 00:32:26 +02:00
|
|
|
|
|
|
|
<ImageView
|
2020-11-23 13:24:38 +01:00
|
|
|
android:id="@+id/overview_carbs_icon"
|
2020-05-03 00:32:26 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
2020-05-10 11:24:09 +02:00
|
|
|
android:background="@drawable/anim_carbs" />
|
2020-05-03 00:32:26 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_cob"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:paddingTop="3dp"
|
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:text="n/a"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/overview_basal_llayout"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="vertical"
|
2020-11-23 13:24:38 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2020-05-03 00:32:26 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/overview_extended_llayout"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_cob_llayout"
|
2020-11-22 20:48:36 +01:00
|
|
|
app:layout_constraintTop_toTopOf="@+id/overview_iob_llayout">
|
2020-05-03 00:32:26 +02:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/overview_basebasal_icon"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
2020-10-19 19:24:33 +02:00
|
|
|
app:srcCompat="@drawable/ic_cp_basal_no_tbr" />
|
2020-05-03 00:32:26 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_basebasal"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:paddingTop="3dp"
|
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:text="n/a"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/overview_extended_llayout"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="vertical"
|
2020-11-23 13:24:38 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2020-05-03 00:32:26 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/overview_as_llayout"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_basal_llayout"
|
2020-11-22 20:48:36 +01:00
|
|
|
app:layout_constraintTop_toTopOf="@+id/overview_iob_llayout">
|
2020-05-03 00:32:26 +02:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
2020-10-19 19:24:33 +02:00
|
|
|
app:srcCompat="@drawable/ic_actions_startextbolus" />
|
2020-05-03 00:32:26 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_extendedbolus"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:paddingTop="3dp"
|
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:text="n/a"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/overview_as_llayout"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="vertical"
|
2020-11-23 13:24:38 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2020-05-03 00:32:26 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_extended_llayout"
|
2020-11-22 20:48:36 +01:00
|
|
|
app:layout_constraintTop_toTopOf="@+id/overview_iob_llayout">
|
2020-05-03 00:32:26 +02:00
|
|
|
|
|
|
|
<ImageView
|
2020-05-14 12:42:33 +02:00
|
|
|
android:id="@+id/overview_sensitivity_icon"
|
2020-05-03 00:32:26 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
2020-10-19 19:24:33 +02:00
|
|
|
app:srcCompat="@drawable/ic_swap_vert_black_48dp_green" />
|
2020-05-03 00:32:26 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_sensitivity"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:paddingTop="3dp"
|
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:text="n/a"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|