AndroidAPS/app/src/main/res/layout/overview_info_layout.xml

395 lines
15 KiB
XML
Raw Normal View History

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"
2021-02-04 12:03:34 +01:00
xmlns:tools="http://schemas.android.com/tools"
2020-05-03 00:32:26 +02:00
android:id="@+id/info_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
2021-02-04 12:03:34 +01:00
android:id="@+id/bg"
2020-05-03 00:32:26 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="00.0"
android:textSize="60sp"
android:textStyle="bold"
2021-02-04 12:03:34 +01:00
app:layout_constraintEnd_toStartOf="@+id/delta_large"
2020-05-03 00:32:26 +02:00
app:layout_constraintStart_toStartOf="parent"
2021-02-04 12:03:34 +01:00
app:layout_constraintTop_toTopOf="parent"
tools:ignore="HardcodedText" />
2020-05-03 00:32:26 +02:00
2020-12-07 22:42:04 +01:00
<TextView
2021-02-04 12:03:34 +01:00
android:id="@+id/delta_large"
2020-12-07 22:42:04 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="(+1.0)"
android:textSize="60sp"
android:textStyle="bold"
android:visibility="gone"
2021-02-04 12:03:34 +01:00
app:layout_constraintBottom_toBottomOf="@+id/bg"
app:layout_constraintEnd_toStartOf="@+id/arrows_layout"
app:layout_constraintStart_toEndOf="@+id/bg"
app:layout_constraintTop_toTopOf="@+id/bg"
tools:ignore="HardcodedText" />
2020-12-07 22:42:04 +01:00
2020-05-03 00:32:26 +02:00
<LinearLayout
2021-02-04 12:03:34 +01:00
android:id="@+id/arrows_layout"
2020-05-03 00:32:26 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
2021-02-04 12:03:34 +01:00
app:layout_constraintBottom_toBottomOf="@+id/bg"
app:layout_constraintEnd_toStartOf="@+id/deltas_layout"
app:layout_constraintStart_toEndOf="@+id/delta_large"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="UseCompoundDrawables">
2020-05-03 00:32:26 +02:00
2020-12-11 10:23:04 +01:00
<ImageView
2021-02-04 12:03:34 +01:00
android:id="@+id/arrow"
2020-12-11 10:23:04 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
app:layout_constraintHorizontal_bias="0.0"
2021-02-04 12:03:34 +01:00
app:srcCompat="@drawable/ic_flat"
android:contentDescription="@string/trend_arrow" />
2020-12-11 10:23:04 +01:00
2020-05-03 00:32:26 +02:00
<TextView
2021-02-04 12:03:34 +01:00
android:id="@+id/time_ago"
2020-05-03 00:32:26 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-07-08 22:29:26 +02:00
android:layout_gravity="center_horizontal"
2021-02-04 12:03:34 +01:00
app:layout_constraintTop_toTopOf="@+id/long_avg_delta"
2020-05-03 00:32:26 +02:00
android:text="n/a"
2021-02-04 12:03:34 +01:00
android:textAppearance="@style/TextAppearance.AppCompat.Small"
tools:ignore="HardcodedText" />
2020-05-03 00:32:26 +02:00
2020-12-11 10:23:04 +01:00
</LinearLayout>
<TableLayout
2021-02-04 12:03:34 +01:00
android:id="@+id/deltas_layout"
2020-12-11 10:23:04 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
2021-02-04 12:03:34 +01:00
app:layout_constraintEnd_toStartOf="@+id/aps_mode_layout"
app:layout_constraintStart_toEndOf="@+id/arrows_layout"
app:layout_constraintBottom_toBottomOf="@+id/arrows_layout">
2020-12-11 10:23:04 +01:00
<TableRow
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-12-11 10:23:04 +01:00
android:layout_gravity="end"
android:textAlignment="textEnd"
android:text="Δ: "
2021-02-04 12:03:34 +01:00
android:textAppearance="@style/TextAppearance.AppCompat.Small"
tools:ignore="HardcodedText" />
2020-05-03 00:32:26 +02:00
2020-12-11 10:23:04 +01:00
<TextView
2021-02-04 12:03:34 +01:00
android:id="@+id/delta"
2020-12-11 10:23:04 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:textAlignment="textEnd"
android:text="n/a"
2021-02-04 12:03:34 +01:00
android:textAppearance="@style/TextAppearance.AppCompat.Small"
tools:ignore="HardcodedText" />
2020-12-11 10:23:04 +01:00
</TableRow>
<TableRow
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:textAlignment="textEnd"
android:text="15m Δ: "
2021-02-04 12:03:34 +01:00
android:textAppearance="@style/TextAppearance.AppCompat.Small"
tools:ignore="HardcodedText" />
2020-12-11 10:23:04 +01:00
<TextView
2021-02-04 12:03:34 +01:00
android:id="@+id/avg_delta"
2020-12-11 10:23:04 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:textAlignment="textEnd"
android:text="n/a"
2021-02-04 12:03:34 +01:00
android:textAppearance="@style/TextAppearance.AppCompat.Small"
tools:ignore="HardcodedText" />
2020-12-11 10:23:04 +01:00
</TableRow>
<TableRow
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:textAlignment="textEnd"
android:text="40m Δ: "
2021-02-04 12:03:34 +01:00
android:textAppearance="@style/TextAppearance.AppCompat.Small"
tools:ignore="HardcodedText" />
2020-12-11 10:23:04 +01:00
<TextView
2021-02-04 12:03:34 +01:00
android:id="@+id/long_avg_delta"
2020-12-11 10:23:04 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:textAlignment="textEnd"
android:text="n/a"
2021-02-04 12:03:34 +01:00
android:textAppearance="@style/TextAppearance.AppCompat.Small"
tools:ignore="HardcodedText" />
2020-12-11 10:23:04 +01:00
</TableRow>
</TableLayout>
2020-05-03 00:32:26 +02:00
<LinearLayout
2021-02-04 12:03:34 +01:00
android:id="@+id/aps_mode_layout"
2020-05-03 00:32:26 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:gravity="center_horizontal"
android:orientation="vertical"
2021-02-04 12:03:34 +01:00
app:layout_constraintBottom_toBottomOf="@+id/bg"
app:layout_constraintEnd_toStartOf="@id/time_layout"
app:layout_constraintStart_toEndOf="@id/deltas_layout"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="UseCompoundDrawables">
2020-05-03 00:32:26 +02:00
<ImageView
2021-02-04 12:03:34 +01:00
android:id="@+id/aps_mode"
2020-05-03 00:32:26 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="-4dp"
2021-01-03 19:12:59 +01:00
android:visibility="gone"
2021-02-04 12:03:34 +01:00
app:srcCompat="@drawable/ic_loop_closed"
android:contentDescription="@string/closedloop" />
2020-05-03 00:32:26 +02:00
<TextView
2021-02-04 12:03:34 +01:00
android:id="@+id/aps_mode_text"
2021-01-03 19:12:59 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-05-03 00:32:26 +02:00
android:gravity="center_horizontal"
android:paddingTop="3dp"
android:paddingBottom="3dp"
android:text="Open Loop"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
2021-01-03 19:12:59 +01:00
android:textStyle="bold"
2021-02-04 12:03:34 +01:00
android:visibility="gone"
tools:ignore="HardcodedText" />
2020-05-03 00:32:26 +02:00
</LinearLayout>
<LinearLayout
2021-02-04 12:03:34 +01:00
android:id="@+id/time_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:gravity="center_horizontal"
android:orientation="vertical"
2021-01-03 19:12:59 +01:00
android:visibility="gone"
2021-02-04 12:03:34 +01:00
app:layout_constraintBottom_toBottomOf="@+id/bg"
app:layout_constraintEnd_toEndOf="parent"
2021-02-04 12:03:34 +01:00
app:layout_constraintStart_toEndOf="@id/aps_mode_layout"
app:layout_constraintTop_toTopOf="parent">
<TextView
2021-02-04 12:03:34 +01:00
android:id="@+id/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"
2021-02-04 12:03:34 +01:00
android:textSize="40sp"
android:textStyle="bold"
tools:ignore="HardcodedText" />
<TextView
2021-02-04 12:03:34 +01:00
android:id="@+id/time_ago_short"
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"
2021-02-04 12:03:34 +01:00
android:textStyle="bold"
tools:ignore="HardcodedText" />
</LinearLayout>
2020-05-03 00:32:26 +02:00
<LinearLayout
2021-02-04 12:03:34 +01:00
android:id="@+id/iob_layout"
2020-05-03 00:32:26 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:gravity="center_horizontal"
android:orientation="vertical"
2021-02-04 12:03:34 +01:00
app:layout_constraintEnd_toStartOf="@+id/cob_layout"
2020-05-03 00:32:26 +02:00
app:layout_constraintStart_toStartOf="parent"
2021-02-04 12:03:34 +01:00
app:layout_constraintTop_toBottomOf="@+id/bg"
tools:ignore="UseCompoundDrawables">
2020-05-03 00:32:26 +02:00
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
2021-02-04 12:03:34 +01:00
app:srcCompat="@drawable/ic_bolus"
android:contentDescription="@string/iob" />
2020-05-03 00:32:26 +02:00
<TextView
2021-02-04 12:03:34 +01:00
android:id="@+id/iob"
2020-05-03 00:32:26 +02:00
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"
2021-02-04 12:03:34 +01:00
android:textStyle="bold"
tools:ignore="HardcodedText" />
2020-05-03 00:32:26 +02:00
</LinearLayout>
<LinearLayout
2021-02-04 12:03:34 +01:00
android:id="@+id/cob_layout"
2020-05-03 00:32:26 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical"
2021-02-04 12:03:34 +01:00
app:layout_constraintEnd_toStartOf="@+id/basal_layout"
app:layout_constraintStart_toEndOf="@+id/iob_layout"
app:layout_constraintTop_toTopOf="@+id/iob_layout"
tools:ignore="UseCompoundDrawables">
2020-05-03 00:32:26 +02:00
<ImageView
2021-02-04 12:03:34 +01:00
android:id="@+id/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"
2021-02-04 12:03:34 +01:00
android:background="@drawable/anim_carbs"
android:contentDescription="@string/cob" />
2020-05-03 00:32:26 +02:00
<TextView
2021-02-04 12:03:34 +01:00
android:id="@+id/cob"
2020-05-03 00:32:26 +02:00
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"
2021-02-04 12:03:34 +01:00
android:textStyle="bold"
tools:ignore="HardcodedText" />
2020-05-03 00:32:26 +02:00
</LinearLayout>
<LinearLayout
2021-02-04 12:03:34 +01:00
android:id="@+id/basal_layout"
2020-05-03 00:32:26 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical"
2021-02-04 12:03:34 +01:00
app:layout_constraintEnd_toStartOf="@+id/extended_layout"
app:layout_constraintStart_toEndOf="@+id/cob_layout"
app:layout_constraintTop_toTopOf="@+id/iob_layout"
tools:ignore="UseCompoundDrawables">
2020-05-03 00:32:26 +02:00
<ImageView
2021-02-04 12:03:34 +01:00
android:id="@+id/base_basal_icon"
2020-05-03 00:32:26 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
2021-02-04 12:03:34 +01:00
app:srcCompat="@drawable/ic_cp_basal_no_tbr"
android:contentDescription="@string/basal" />
2020-05-03 00:32:26 +02:00
<TextView
2021-02-04 12:03:34 +01:00
android:id="@+id/base_basal"
2020-05-03 00:32:26 +02:00
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"
2021-02-04 12:03:34 +01:00
android:textStyle="bold"
tools:ignore="HardcodedText" />
2020-05-03 00:32:26 +02:00
</LinearLayout>
<LinearLayout
2021-02-04 12:03:34 +01:00
android:id="@+id/extended_layout"
2020-05-03 00:32:26 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical"
2021-02-04 12:03:34 +01:00
app:layout_constraintEnd_toStartOf="@+id/as_layout"
app:layout_constraintStart_toEndOf="@+id/basal_layout"
app:layout_constraintTop_toTopOf="@+id/iob_layout"
tools:ignore="UseCompoundDrawables">
2020-05-03 00:32:26 +02:00
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
2021-02-04 12:03:34 +01:00
app:srcCompat="@drawable/ic_actions_startextbolus"
android:contentDescription="@string/extended_bolus" />
2020-05-03 00:32:26 +02:00
<TextView
2021-02-04 12:03:34 +01:00
android:id="@+id/extended_bolus"
2020-05-03 00:32:26 +02:00
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"
2021-02-04 12:03:34 +01:00
android:textStyle="bold"
tools:ignore="HardcodedText" />
2020-05-03 00:32:26 +02:00
</LinearLayout>
<LinearLayout
2021-02-04 12:03:34 +01:00
android:id="@+id/as_layout"
2020-05-03 00:32:26 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
2021-02-04 12:03:34 +01:00
app:layout_constraintStart_toEndOf="@+id/extended_layout"
app:layout_constraintTop_toTopOf="@+id/iob_layout"
tools:ignore="UseCompoundDrawables">
2020-05-03 00:32:26 +02:00
<ImageView
2021-02-04 12:03:34 +01:00
android:id="@+id/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"
2021-02-04 12:03:34 +01:00
app:srcCompat="@drawable/ic_swap_vert_black_48dp_green"
android:contentDescription="@string/autosenslabel" />
2020-05-03 00:32:26 +02:00
<TextView
2021-02-04 12:03:34 +01:00
android:id="@+id/sensitivity"
2020-05-03 00:32:26 +02:00
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"
2021-02-04 12:03:34 +01:00
android:textStyle="bold"
tools:ignore="HardcodedText" />
2020-05-03 00:32:26 +02:00
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>