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

130 lines
4.1 KiB
XML
Raw Normal View History

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"
xmlns:tools="http://schemas.android.com/tools"
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">
2022-01-19 17:21:59 +01:00
<LinearLayout
2020-05-03 00:32:26 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:focusable="true"
android:gravity="center_horizontal">
2020-05-03 00:32:26 +02:00
2022-01-19 17:21:59 +01:00
<ImageView
2022-02-11 10:15:37 +01:00
android:id="@+id/cannula_or_patch"
android:layout_width="38dp"
2022-01-19 17:21:59 +01:00
android:layout_height="fill_parent"
android:contentDescription="@string/statuslights_cannula_age"
android:scaleX="2"
android:scaleY="2"
app:srcCompat="@drawable/ic_cp_age_cannula" />
2020-05-03 00:32:26 +02:00
2022-01-19 17:21:59 +01:00
<TextView
android:id="@+id/cannula_age"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:lines="1"
tools:text="1d12h" />
2022-01-19 17:21:59 +01:00
</LinearLayout>
<LinearLayout
2020-05-03 00:32:26 +02:00
android:layout_width="wrap_content"
2022-01-19 17:21:59 +01:00
android:layout_height="fill_parent"
2020-05-03 00:32:26 +02:00
android:layout_weight="1"
android:focusable="true"
android:gravity="center_horizontal">
2022-01-19 17:21:59 +01:00
<ImageView
android:layout_width="26dp"
2022-01-19 17:21:59 +01:00
android:layout_height="fill_parent"
android:contentDescription="@string/a11y_insulin_label"
android:scaleX="1.7"
android:scaleY="1.7"
2022-01-19 17:21:59 +01:00
app:srcCompat="@drawable/ic_cp_age_insulin" />
<TextView
android:id="@+id/insulin_age"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:lines="1"
tools:text="12h" />
2022-01-19 17:21:59 +01:00
<TextView
android:id="@+id/reservoir_level"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:lines="1"
android:paddingStart="2dp"
tools:text="50+U" />
2022-01-19 17:21:59 +01:00
</LinearLayout>
<LinearLayout
2020-05-03 00:32:26 +02:00
android:layout_width="wrap_content"
2022-01-19 17:21:59 +01:00
android:layout_height="fill_parent"
android:layout_weight="1"
android:focusable="true"
android:gravity="center_horizontal">
2022-01-19 17:21:59 +01:00
<ImageView
android:layout_width="28dp"
2022-01-19 17:21:59 +01:00
android:layout_height="fill_parent"
android:contentDescription="@string/careportal_sensor_label"
android:scaleX="1.6"
android:scaleY="1.6"
2022-01-19 17:21:59 +01:00
app:srcCompat="@drawable/ic_cp_age_sensor" />
<TextView
android:id="@+id/sensor_age"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:lines="1"
tools:text="1d12h" />
2022-01-19 17:21:59 +01:00
</LinearLayout>
2020-05-03 00:32:26 +02:00
2022-01-19 17:21:59 +01:00
<LinearLayout
2022-02-15 14:16:51 +01:00
android:id="@+id/battery_layout"
2020-05-03 00:32:26 +02:00
android:layout_width="wrap_content"
2022-01-19 17:21:59 +01:00
android:layout_height="fill_parent"
android:layout_weight="1"
android:focusable="true"
android:gravity="center_horizontal">
2022-01-19 17:21:59 +01:00
<ImageView
android:layout_width="32dp"
2022-01-19 17:21:59 +01:00
android:layout_height="wrap_content"
android:contentDescription="@string/battery_label"
android:scaleX="1.8"
android:scaleY="1.8"
2022-01-19 17:21:59 +01:00
app:srcCompat="@drawable/ic_cp_age_battery" />
<TextView
android:id="@+id/pb_age"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:lines="1"
tools:text="-" />
2022-01-19 17:21:59 +01:00
<TextView
android:id="@+id/battery_level"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:lines="1"
android:paddingStart="2dp"
tools:text="100%" />
2022-01-19 17:21:59 +01:00
</LinearLayout>
2020-05-03 00:32:26 +02:00
</LinearLayout>