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

175 lines
6.6 KiB
XML
Raw Normal View History

2017-01-13 23:43:17 +01:00
<?xml version="1.0" encoding="utf-8"?>
2022-04-15 11:47:29 +02:00
<com.google.android.material.card.MaterialCardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2021-02-03 22:40:13 +01:00
xmlns:tools="http://schemas.android.com/tools"
2022-04-15 11:47:29 +02:00
style="@style/Widget.MaterialComponents.CardView"
android:id="@+id/temptarget_card"
2017-01-13 23:43:17 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2022-04-15 11:47:29 +02:00
android:layout_marginStart="4dp"
app:cardCornerRadius="4dp"
app:contentPadding="2dp"
android:layout_gravity="center">
2017-01-13 23:43:17 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2022-02-10 19:21:42 +01:00
<TextView
android:id="@+id/date"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
android:layout_marginRight="5dp"
android:layout_marginBottom="5dp"
android:background="?android:attr/dividerHorizontal"
2022-02-10 19:21:42 +01:00
android:gravity="center"
android:textAppearance="?android:attr/textAppearanceMedium"
tools:text="1.1.2000" />
2022-02-10 19:21:42 +01:00
2017-01-13 23:43:17 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:baselineAligned="true"
android:orientation="horizontal">
<com.joanzapata.iconify.widget.IconTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2021-02-03 22:40:13 +01:00
android:gravity="center"
android:paddingStart="10dp"
android:paddingEnd="5dp"
tools:text="{fa-clock-o}" />
2017-01-13 23:43:17 +01:00
<TextView
2022-02-10 19:21:42 +01:00
android:id="@+id/time"
2017-01-13 23:43:17 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-02-03 22:40:13 +01:00
android:paddingStart="10dp"
android:textAppearance="?android:attr/textAppearanceSmall"
tools:ignore="RtlSymmetry"
tools:text="1.1.2000 18:00" />
2017-01-13 23:43:17 +01:00
<TextView
2021-02-03 22:40:13 +01:00
android:id="@+id/low"
2017-01-13 23:43:17 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-02-03 22:40:13 +01:00
android:paddingStart="10dp"
android:textAppearance="?android:attr/textAppearanceSmall"
tools:ignore="RtlSymmetry"
tools:text="80" />
2017-01-13 23:43:17 +01:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-02-03 22:40:13 +01:00
android:paddingStart="5dp"
android:textAppearance="?android:attr/textAppearanceSmall"
tools:ignore="RtlSymmetry"
tools:text="-" />
2017-01-13 23:43:17 +01:00
<TextView
2021-02-03 22:40:13 +01:00
android:id="@+id/high"
2017-01-13 23:43:17 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-02-03 22:40:13 +01:00
android:paddingStart="5dp"
android:textAppearance="?android:attr/textAppearanceSmall"
tools:ignore="RtlSymmetry"
tools:text="100" />
2017-01-13 23:43:17 +01:00
<TextView
2021-02-03 22:40:13 +01:00
android:id="@+id/duration"
2017-01-13 23:43:17 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-02-03 22:40:13 +01:00
android:paddingStart="10dp"
android:textAppearance="?android:attr/textAppearanceSmall"
tools:ignore="RtlSymmetry"
tools:text="30 min" />
2017-01-13 23:43:17 +01:00
2017-06-08 18:15:17 +02:00
<TextView
2021-02-03 22:40:13 +01:00
android:layout_width="0dp"
2017-06-08 18:15:17 +02:00
android:layout_height="wrap_content"
2021-02-03 22:40:13 +01:00
android:layout_marginEnd="10dp"
2017-06-08 18:15:17 +02:00
android:layout_weight="1"
android:text="" />
<TextView
2021-02-03 22:40:13 +01:00
android:id="@+id/ns"
2017-06-08 18:15:17 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-02-03 22:40:13 +01:00
android:layout_marginEnd="10dp"
android:textColor="?attr/setTempButton"
tools:text="NS" />
2017-06-08 18:15:17 +02:00
2017-01-13 23:43:17 +01:00
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<TextView
2021-02-03 22:40:13 +01:00
android:id="@+id/reason_label"
2017-01-13 23:43:17 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
2021-02-03 22:40:13 +01:00
android:paddingStart="10dp"
2017-01-13 23:43:17 +01:00
android:text="@string/reason"
2021-02-03 22:40:13 +01:00
android:textAppearance="?android:attr/textAppearanceSmall"
tools:ignore="RtlSymmetry" />
2017-01-13 23:43:17 +01:00
<TextView
2021-02-03 22:40:13 +01:00
android:id="@+id/reason_colon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-02-03 22:40:13 +01:00
android:paddingEnd="5dp"
android:text=":"
tools:ignore="HardcodedText,RtlSymmetry" />
2017-01-13 23:43:17 +01:00
<TextView
2021-02-03 22:40:13 +01:00
android:id="@+id/reason"
android:layout_width="0dp"
2017-01-13 23:43:17 +01:00
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2017-05-24 19:42:23 +02:00
android:layout_weight="1"
2021-02-03 22:40:13 +01:00
android:paddingEnd="10dp"
android:textStyle="bold"
tools:ignore="RtlSymmetry"
tools:text="Activity" />
2017-01-13 23:43:17 +01:00
2021-03-01 12:42:42 +01:00
<TextView
android:id="@+id/invalid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:text="@string/invalid"
android:textColor="?attr/alarmColor" />
2021-03-01 12:42:42 +01:00
2022-02-22 21:11:15 +01:00
<CheckBox
android:id="@+id/cb_remove"
android:layout_width="wrap_content"
android:layout_height="19dp"
2022-02-22 21:11:15 +01:00
android:contentDescription="@string/select_for_removal"
android:minWidth="0dp"
2022-02-22 21:11:15 +01:00
android:visibility="gone" />
2017-01-13 23:43:17 +01:00
</LinearLayout>
2017-05-24 19:42:23 +02:00
<View
2022-02-10 19:21:42 +01:00
android:id="@+id/delimiter"
2017-05-24 19:42:23 +02:00
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
2021-03-01 12:42:42 +01:00
android:layout_marginRight="5dp"
android:layout_marginBottom="5dp"
android:background="?android:attr/dividerHorizontal" />
2017-05-24 19:42:23 +02:00
2017-01-13 23:43:17 +01:00
</LinearLayout>
2022-04-15 11:47:29 +02:00
</com.google.android.material.card.MaterialCardView>