2020-05-03 00:32:26 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-10-19 19:24:33 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2021-02-04 12:03:34 +01:00
|
|
|
android:id="@+id/status_lights"
|
2020-05-03 00:32:26 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
android:layout_marginBottom="3dp"
|
2020-10-19 19:24:33 +02:00
|
|
|
android:background="?attr/colorControlHighlight"
|
2020-05-03 00:32:26 +02:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
android:paddingBottom="4dp">
|
|
|
|
|
|
|
|
<ImageView
|
2022-02-09 09:06:31 +01:00
|
|
|
android:id="@+id/cannula_or_patch"
|
2020-05-03 00:32:26 +02:00
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
2022-02-02 19:04:32 +01:00
|
|
|
android:scaleX = "2"
|
|
|
|
android:scaleY = "2"
|
2020-05-03 00:32:26 +02:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:scaleType="centerInside"
|
2021-02-04 12:03:34 +01:00
|
|
|
app:srcCompat="@drawable/ic_cp_age_cannula"
|
2022-02-02 19:04:32 +01:00
|
|
|
android:contentDescription="@string/statuslights_cannula_age" />
|
2020-05-03 00:32:26 +02:00
|
|
|
|
|
|
|
<TextView
|
2021-02-04 12:03:34 +01:00
|
|
|
android:id="@+id/cannula_age"
|
2020-05-03 00:32:26 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingStart="1dp"
|
|
|
|
android:paddingEnd="2dp"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:scaleType="centerInside"
|
2022-02-02 19:04:32 +01:00
|
|
|
android:scaleX="1.6"
|
|
|
|
android:scaleY="1.6"
|
2021-02-04 12:03:34 +01:00
|
|
|
app:srcCompat="@drawable/ic_cp_age_insulin"
|
|
|
|
android:contentDescription="@string/insulin_label" />
|
2020-05-03 00:32:26 +02:00
|
|
|
|
|
|
|
<TextView
|
2021-02-04 12:03:34 +01:00
|
|
|
android:id="@+id/insulin_age"
|
2020-05-03 00:32:26 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingStart="1dp"
|
|
|
|
android:paddingEnd="2dp"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
2021-02-04 12:03:34 +01:00
|
|
|
android:id="@+id/reservoir_level"
|
2020-05-03 00:32:26 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:scaleType="centerInside"
|
2020-06-11 11:45:06 +02:00
|
|
|
android:scaleX="2"
|
|
|
|
android:scaleY="2"
|
2021-02-04 12:03:34 +01:00
|
|
|
app:srcCompat="@drawable/ic_cp_age_sensor"
|
|
|
|
android:contentDescription="@string/careportal_sensor_label" />
|
2020-05-03 00:32:26 +02:00
|
|
|
|
|
|
|
<TextView
|
2021-02-04 12:03:34 +01:00
|
|
|
android:id="@+id/sensor_age"
|
2020-05-03 00:32:26 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingStart="1dp"
|
|
|
|
android:paddingEnd="2dp"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:scaleType="centerInside"
|
2020-06-11 11:45:06 +02:00
|
|
|
android:scaleX="2"
|
|
|
|
android:scaleY="2"
|
2021-02-04 12:03:34 +01:00
|
|
|
app:srcCompat="@drawable/ic_cp_age_battery"
|
|
|
|
android:contentDescription="@string/battery_label" />
|
2020-05-03 00:32:26 +02:00
|
|
|
|
|
|
|
<TextView
|
2021-02-04 12:03:34 +01:00
|
|
|
android:id="@+id/pb_age"
|
2020-05-03 00:32:26 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingStart="1dp"
|
|
|
|
android:paddingEnd="1dp"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
2021-02-04 12:03:34 +01:00
|
|
|
android:id="@+id/battery_level"
|
2020-05-03 00:32:26 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingStart="1dp"
|
|
|
|
android:paddingEnd="2dp"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|