2020-01-25 21:31:13 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-07-02 11:28:03 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2019-02-28 23:16:50 +01:00
|
|
|
tools:context=".plugins.general.overview.OverviewFragment">
|
2017-07-02 11:28:03 +02:00
|
|
|
|
|
|
|
<ScrollView
|
2020-01-25 21:31:13 +01:00
|
|
|
android:id="@+id/overview_toppart_scrollbar"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/overview_buttons_layout"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2019-05-16 13:57:37 +02:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2017-07-02 11:28:03 +02:00
|
|
|
android:id="@+id/overview_notifications"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/overview_looplayout"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2017-07-02 11:28:03 +02:00
|
|
|
|
2019-05-16 13:57:37 +02:00
|
|
|
</androidx.recyclerview.widget.RecyclerView>
|
2017-07-02 11:28:03 +02:00
|
|
|
|
2020-01-25 21:31:13 +01:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2017-07-02 11:28:03 +02:00
|
|
|
android:id="@+id/overview_looplayout"
|
|
|
|
android:layout_width="match_parent"
|
2018-06-05 13:24:48 +02:00
|
|
|
android:layout_height="wrap_content"
|
2020-01-25 21:31:13 +01:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/overview_pumpstatuslayout"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/overview_notifications">
|
2017-07-02 11:28:03 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_apsmode"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="5dp"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:gravity="center_vertical|center_horizontal"
|
2018-06-05 13:24:48 +02:00
|
|
|
android:paddingTop="3dp"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:text="@string/openloop"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/overview_activeprofile"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2017-07-02 11:28:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_activeprofile"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:layout_width="0dp"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_height="wrap_content"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:layout_marginEnd="5dp"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:gravity="center_vertical|center_horizontal"
|
2018-06-05 13:24:48 +02:00
|
|
|
android:paddingTop="3dp"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:text="@string/profile"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/overview_temptarget"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_apsmode"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2017-07-02 11:28:03 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_temptarget"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:layout_width="0dp"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical|center_horizontal"
|
2018-06-05 13:24:48 +02:00
|
|
|
android:paddingTop="3dp"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:text="@string/temptargetshort"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:textColor="@color/mdtp_white"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_activeprofile"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2017-07-02 11:28:03 +02:00
|
|
|
|
2020-01-25 21:31:13 +01:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2017-07-02 11:28:03 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/overview_pumpstatuslayout"
|
|
|
|
android:layout_width="match_parent"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:layout_height="wrap_content"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:orientation="horizontal"
|
2020-01-25 21:31:13 +01:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/bg_tbr_layout"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/overview_looplayout">
|
2017-07-02 11:28:03 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_pumpstatus"
|
|
|
|
android:layout_width="match_parent"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:layout_height="wrap_content"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_marginRight="5dp"
|
2018-06-23 22:17:54 +02:00
|
|
|
android:gravity="center_vertical|center_horizontal"
|
2018-06-09 13:53:11 +02:00
|
|
|
android:paddingTop="3dp"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:paddingBottom="3dp"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:text="@string/initializing"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
2020-01-25 21:31:13 +01:00
|
|
|
|
2017-07-02 11:28:03 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
2020-01-25 21:31:13 +01:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/bg_tbr_layout"
|
|
|
|
android:layout_width="wrap_content"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_height="wrap_content"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:orientation="horizontal"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/overview_statuslights_nscl"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/overview_pumpstatuslayout">
|
2017-07-02 11:28:03 +02:00
|
|
|
|
2020-01-25 21:31:13 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_bg"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:text="00.0"
|
|
|
|
android:textSize="42sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/overview_arrow"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_arrow"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:paddingStart="-2dp"
|
|
|
|
android:paddingEnd="0dp"
|
|
|
|
android:text="→"
|
|
|
|
android:textSize="28sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/overview_bg_guideline"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_bg"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/overview_bg" />
|
2017-07-02 11:28:03 +02:00
|
|
|
|
2020-01-25 21:31:13 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_hor_space"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=" "
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/overview_bg_guideline"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_arrow"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/overview_bg" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_timeago"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="1 min ago"
|
|
|
|
android:textSize="14sp"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/overview_delta"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/overview_arrow"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/overview_bg" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_delta"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="delta 15m: 0.35"
|
|
|
|
android:textSize="14sp"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/overview_avgdelta"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/overview_arrow"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/overview_timeago" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_avgdelta"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="delta 40m: 0.1"
|
|
|
|
android:textSize="14sp"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/overview_arrow"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/overview_delta" />
|
|
|
|
|
|
|
|
|
|
|
|
<!-- right side -->
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/overview_bg_guideline"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/overview_iob_label"
|
|
|
|
app:layout_constraintGuide_percent="0.40"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_hor_space"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<!-- right side IOB -->
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_iob_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/iob"
|
|
|
|
android:textSize="16sp"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/overview_cob_label"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_bg_guideline"
|
|
|
|
app:layout_constraintTop_toBottomOf="parent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_iob_colon"
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="16sp"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_iob_label"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/overview_iob_label" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_iob"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:text="@string/iob"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/overview_iob_label"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_iob_colon" />
|
|
|
|
|
|
|
|
<!-- right side COB -->
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_cob_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/cob"
|
|
|
|
android:textSize="16sp"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/overview_basebasal_label"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_bg_guideline"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/overview_iob_label" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_cob_colon"
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="16sp"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_cob_label"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/overview_iob_label" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_cob"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:text="@string/cob"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/overview_cob_label"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_cob_colon" />
|
|
|
|
|
|
|
|
<!-- right side basal -->
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_basebasal_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/basal_short"
|
|
|
|
android:textSize="16sp"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/overview_extendedbolus_label"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_bg_guideline"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/overview_cob_label" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_basebasal_colon"
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="16sp"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_basebasal_label"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/overview_cob_label" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_basebasal"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:text="0.50U/h @17:35 1/30min"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/overview_basebasal_label"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_basebasal_colon" />
|
|
|
|
|
|
|
|
<!-- right side extended -->
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_extendedbolus_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/extended_bolus_short"
|
|
|
|
android:textSize="16sp"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/overview_sensitivity_label"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_bg_guideline"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/overview_basebasal_label" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_extendedbolus_colon"
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="16sp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/overview_extendedbolus_label"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_extendedbolus_label" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_extendedbolus"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:text="0.50U/h @17:35 1/30min"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/overview_extendedbolus_label"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_extendedbolus_colon" />
|
|
|
|
|
|
|
|
<!-- right side AS -->
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_sensitivity_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/sensitivity_short"
|
|
|
|
android:textSize="16sp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_bg_guideline"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/overview_extendedbolus_label" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_sensitivity_colon"
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="16sp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/overview_sensitivity_label"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_sensitivity_label" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_sensitivity"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:text="100%"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/overview_sensitivity_label"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/overview_sensitivity_colon" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2019-12-25 16:04:52 +01:00
|
|
|
|
|
|
|
<LinearLayout
|
2020-01-25 21:31:13 +01:00
|
|
|
android:id="@+id/overview_statuslights_nscl"
|
|
|
|
android:layout_width="0dp"
|
2019-12-25 16:04:52 +01:00
|
|
|
android:layout_height="wrap_content"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:background="?android:attr/colorControlHighlight"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
android:paddingBottom="4dp"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/overview_pump"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/bg_tbr_layout">
|
|
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingStart="2dp"
|
|
|
|
android:paddingEnd="1dp"
|
|
|
|
android:scaleType="centerInside"
|
|
|
|
android:src="@drawable/icon_cp_age_canula" />
|
2019-12-25 16:04:52 +01:00
|
|
|
|
2020-01-25 21:31:13 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/careportal_canulaage"
|
2019-12-25 16:04:52 +01:00
|
|
|
android:layout_width="match_parent"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingStart="1dp"
|
|
|
|
android:paddingEnd="2dp"
|
|
|
|
android:textSize="14sp" />
|
2019-12-25 16:04:52 +01:00
|
|
|
|
2020-01-25 21:31:13 +01:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingStart="2dp"
|
|
|
|
android:paddingEnd="1dp"
|
|
|
|
android:scaleType="centerInside"
|
|
|
|
android:src="@drawable/icon_cp_age_insulin" />
|
2019-12-25 16:04:52 +01:00
|
|
|
|
2020-01-25 21:31:13 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/careportal_insulinage"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingStart="1dp"
|
|
|
|
android:paddingEnd="2dp"
|
|
|
|
android:textSize="14sp" />
|
2019-12-25 16:04:52 +01:00
|
|
|
|
2020-01-25 21:31:13 +01:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingStart="2dp"
|
|
|
|
android:paddingEnd="1dp"
|
|
|
|
android:scaleType="centerInside"
|
|
|
|
android:src="@drawable/icon_cp_age_sensor" />
|
2019-12-25 16:04:52 +01:00
|
|
|
|
2020-01-25 21:31:13 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/careportal_sensorage"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingStart="1dp"
|
|
|
|
android:paddingEnd="2dp"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="30dp"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_height="match_parent"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:layout_weight="0"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingStart="2dp"
|
|
|
|
android:paddingEnd="1dp"
|
|
|
|
android:scaleType="centerInside"
|
|
|
|
android:src="@drawable/icon_cp_age_battery" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/careportal_pbage"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_weight="1"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingStart="1dp"
|
|
|
|
android:paddingEnd="1dp"
|
|
|
|
android:textSize="14sp" />
|
2017-07-02 11:28:03 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-01-25 21:31:13 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_pump"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingStart="4sp"
|
|
|
|
android:paddingEnd="4sp"
|
|
|
|
android:text="Pump: running"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="16sp"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/overview_openaps"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/overview_statuslights_nscl" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_openaps"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:paddingStart="4sp"
|
|
|
|
android:paddingEnd="4sp"
|
|
|
|
android:text="OAPS: 3 min ago"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="16sp"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/overview_bggraph"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/overview_uploader"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/overview_pump" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_uploader"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="end"
|
|
|
|
android:paddingStart="4sp"
|
|
|
|
android:paddingEnd="4sp"
|
|
|
|
android:text="UPLD: 84%"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="16sp"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/overview_bggraph"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/overview_openaps"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/overview_pump" />
|
|
|
|
|
|
|
|
<com.jjoe64.graphview.GraphView
|
|
|
|
android:id="@+id/overview_bggraph"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="200dp"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/overview_iobgraph"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/overview_openaps" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/overview_chartMenuButton"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginEnd="5dp"
|
|
|
|
android:contentDescription="@string/chartmenu"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/overview_bggraph"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/overview_bggraph"
|
|
|
|
app:srcCompat="@drawable/ic_arrow_drop_down_white_24dp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_iobcalculationprogess"
|
2018-03-16 19:16:47 +01:00
|
|
|
android:layout_width="wrap_content"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_height="wrap_content"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:layout_centerInParent="true"
|
2020-01-26 10:25:10 +01:00
|
|
|
android:text=""
|
2020-01-25 21:31:13 +01:00
|
|
|
android:textSize="15sp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/overview_bggraph"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/overview_bggraph"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/overview_bggraph"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/overview_bggraph" />
|
|
|
|
|
|
|
|
|
|
|
|
<com.jjoe64.graphview.GraphView
|
|
|
|
android:id="@+id/overview_iobgraph"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="100dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/overview_bggraph" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2017-07-02 11:28:03 +02:00
|
|
|
|
2019-12-25 16:04:52 +01:00
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
<LinearLayout
|
2020-01-25 21:31:13 +01:00
|
|
|
android:id="@+id/overview_buttons_layout"
|
2019-12-25 16:04:52 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-01-25 21:31:13 +01:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingStart="0dp"
|
|
|
|
android:paddingEnd="5dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/overview_toppart_scrollbar">
|
|
|
|
|
|
|
|
<info.nightscout.androidaps.utils.SingleClickButton
|
|
|
|
android:id="@+id/overview_treatmentbutton"
|
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginEnd="-4dp"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:drawableTop="@drawable/icon_insulin_carbs"
|
|
|
|
android:text="@string/overview_treatment_label"
|
|
|
|
android:textColor="@color/colorTreatmentButton"
|
|
|
|
android:textSize="10sp"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<info.nightscout.androidaps.utils.SingleClickButton
|
|
|
|
android:id="@+id/overview_insulinbutton"
|
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginEnd="-4dp"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:drawableTop="@drawable/icon_bolus"
|
|
|
|
android:text="@string/overview_insulin_label"
|
|
|
|
android:textColor="@color/colorInsulinButton"
|
|
|
|
android:textSize="10sp" />
|
|
|
|
|
|
|
|
<info.nightscout.androidaps.utils.SingleClickButton
|
|
|
|
android:id="@+id/overview_carbsbutton"
|
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginEnd="-4dp"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:drawableTop="@drawable/icon_cp_bolus_carbs"
|
|
|
|
android:text="@string/overview_carbs_label"
|
|
|
|
android:textColor="@color/colorCarbsButton"
|
|
|
|
android:textSize="10sp" />
|
|
|
|
|
|
|
|
<info.nightscout.androidaps.utils.SingleClickButton
|
|
|
|
android:id="@+id/overview_wizardbutton"
|
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginEnd="-4dp"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:drawableTop="@drawable/icon_calculator"
|
|
|
|
android:text="@string/overview_calculator_label"
|
|
|
|
android:textColor="@color/colorCalculatorButton"
|
|
|
|
android:textSize="10sp" />
|
|
|
|
|
|
|
|
<info.nightscout.androidaps.utils.SingleClickButton
|
|
|
|
android:id="@+id/overview_calibrationbutton"
|
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginEnd="-4dp"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:drawableTop="@drawable/icon_calibration"
|
|
|
|
android:text="@string/overview_calibration"
|
|
|
|
android:textColor="@color/colorCalibrationButton"
|
|
|
|
android:textSize="10sp"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<info.nightscout.androidaps.utils.SingleClickButton
|
|
|
|
android:id="@+id/overview_cgmbutton"
|
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginEnd="-4dp"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:drawableTop="@drawable/icon_xdrip"
|
|
|
|
android:text="@string/overview_cgm"
|
|
|
|
android:textColor="@color/colorCalibrationButton"
|
|
|
|
android:textSize="10sp"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<info.nightscout.androidaps.utils.SingleClickButton
|
|
|
|
android:id="@+id/overview_quickwizardbutton"
|
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginEnd="-4dp"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:drawableTop="@drawable/icon_quickwizard"
|
|
|
|
android:text="@string/quickwizard"
|
|
|
|
android:textColor="@color/colorQuickWizardButton"
|
|
|
|
android:textSize="10sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|