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

137 lines
5.1 KiB
XML
Raw Normal View History

2018-01-22 21:49:01 +01:00
<?xml version="1.0" encoding="utf-8"?>
2019-05-16 13:57:37 +02:00
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
2018-01-22 21:49:01 +01:00
xmlns:card_view="http://schemas.android.com/apk/res-auto"
2021-02-03 22:40:13 +01:00
xmlns:tools="http://schemas.android.com/tools"
2018-01-22 21:49:01 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
card_view:cardBackgroundColor="?android:colorBackground">
<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:text="1.1.2000"
android:textAppearance="?android:attr/textAppearanceMedium"
tools:ignore="HardcodedText" />
2018-01-22 21:49:01 +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"
2020-01-15 21:55:53 +01:00
android:gravity="center_vertical|end"
android:paddingStart="10dp"
android:paddingEnd="5dp"
2021-02-03 22:40:13 +01:00
android:text="{fa-clock-o}"
tools:ignore="HardcodedText" />
2018-01-22 21:49:01 +01:00
<TextView
2022-02-10 19:21:42 +01:00
android:id="@+id/time"
2018-01-22 21:49:01 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-01-15 21:55:53 +01:00
android:paddingEnd="10dp"
2022-02-10 19:21:42 +01:00
android:text="18:00"
2021-02-03 22:40:13 +01:00
android:textAppearance="?android:attr/textAppearanceSmall"
tools:ignore="HardcodedText,RtlSymmetry" />
2018-01-22 21:49:01 +01:00
<TextView
android:id="@+id/type"
2018-01-22 21:49:01 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2020-01-15 21:55:53 +01:00
android:paddingEnd="10dp"
2018-01-22 21:49:01 +01:00
android:text=""
2021-02-03 22:40:13 +01:00
android:textStyle="bold"
tools:ignore="RtlSymmetry" />
2018-01-22 21:49:01 +01:00
<TextView
2020-01-15 21:55:53 +01:00
android:layout_width="0dp"
2018-01-22 21:49:01 +01:00
android:layout_height="wrap_content"
2020-01-15 21:55:53 +01:00
android:layout_marginEnd="10dp"
2018-01-22 21:49:01 +01:00
android:layout_weight="1"
android:text="" />
<TextView
android:id="@+id/ns"
2018-01-22 21:49:01 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-01-15 21:55:53 +01:00
android:layout_marginEnd="10dp"
2018-01-22 21:49:01 +01:00
android:text="NS"
android:textColor="?attr/setTempButton"
2021-02-03 22:40:13 +01:00
tools:ignore="HardcodedText" />
2018-01-22 21:49:01 +01:00
2021-03-08 20:10:02 +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-08 20:10:02 +01:00
2018-01-22 21:49:01 +01:00
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
2021-03-08 20:10:02 +01:00
<TextView
android:id="@+id/duration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:paddingStart="10dp"
android:paddingEnd="10dp"
tools:ignore="RtlSymmetry" />
2018-01-22 21:49:01 +01:00
<TextView
android:id="@+id/note"
2020-01-15 21:55:53 +01:00
android:layout_width="0dp"
2018-01-22 21:49:01 +01:00
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
2020-01-15 21:55:53 +01:00
android:paddingEnd="10dp"
2021-02-03 22:40:13 +01:00
android:text="Activity"
2021-03-08 20:10:02 +01:00
tools:ignore="HardcodedText,RtlSymmetry" />
2018-01-22 21:49:01 +01:00
2022-02-22 21:11:15 +01:00
<CheckBox
android:id="@+id/cb_remove"
2018-01-22 21:49:01 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2022-02-22 21:11:15 +01:00
android:contentDescription="@string/select_for_removal"
android:visibility="gone" />
2018-01-22 21:49:01 +01:00
</LinearLayout>
<View
2022-02-10 19:21:42 +01:00
android:id="@+id/delimiter"
2018-01-22 21:49:01 +01:00
android:layout_width="fill_parent"
android:layout_height="2dip"
2020-01-15 21:55:53 +01:00
android:layout_marginStart="5dp"
2018-01-22 21:49:01 +01:00
android:layout_marginTop="5dp"
2021-03-08 20:10:02 +01:00
android:layout_marginEnd="5dp"
android:layout_marginBottom="5dp"
android:background="?android:attr/dividerHorizontal" />
2018-01-22 21:49:01 +01:00
</LinearLayout>
2019-05-16 13:57:37 +02:00
</androidx.cardview.widget.CardView>