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

138 lines
5.2 KiB
XML
Raw Normal View History

2017-06-02 23:25:11 +02: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"
2017-06-02 23:25:11 +02: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"
2017-06-02 23:25:11 +02: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">
<LinearLayout
android:layout_width="match_parent"
2017-09-24 10:39:54 +02:00
android:layout_height="wrap_content"
2017-06-02 23:25:11 +02:00
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"
2017-09-24 10:39:54 +02:00
android:gravity="center_vertical|end"
android:paddingStart="10dp"
2021-04-29 20:42:45 +02:00
android:paddingEnd="5dp"
2021-02-03 22:40:13 +01:00
android:text="{fa-clock-o}"
tools:ignore="HardcodedText" />
2017-06-02 23:25:11 +02:00
<TextView
android:id="@+id/date"
2017-06-02 23:25:11 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-09-24 10:39:54 +02:00
android:paddingStart="10dp"
2017-06-02 23:25:11 +02:00
android:text="1.1.2000 18:00"
2021-02-03 22:40:13 +01:00
android:textAppearance="?android:attr/textAppearanceSmall"
tools:ignore="HardcodedText,RtlSymmetry" />
2017-06-02 23:25:11 +02:00
<TextView
android:id="@+id/name"
2017-09-24 10:39:54 +02:00
android:layout_width="0dp"
2017-06-02 23:25:11 +02:00
android:layout_height="wrap_content"
2017-09-24 10:39:54 +02:00
android:layout_weight="1"
android:paddingStart="10dp"
2017-06-02 23:25:11 +02:00
android:text="Name"
2021-02-03 22:40:13 +01:00
android:textAppearance="?android:attr/textAppearanceSmall"
tools:ignore="HardcodedText,RtlSymmetry" />
2017-06-02 23:25:11 +02:00
2021-04-29 20:42:45 +02:00
<TextView
android:id="@+id/ph"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingEnd="10dp"
android:text="PH"
android:textAlignment="viewEnd"
android:textColor="@color/colorSetTempButton"
tools:ignore="HardcodedText,RtlSymmetry" />
<TextView
android:id="@+id/ns"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingEnd="10dp"
android:text="NS"
android:textColor="@color/colorSetTempButton"
tools:ignore="HardcodedText,RtlSymmetry" />
2017-09-24 10:39:54 +02:00
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:baselineAligned="true"
android:orientation="horizontal">
2017-06-02 23:25:11 +02:00
<TextView
android:id="@+id/duration"
2021-04-29 20:42:45 +02:00
android:layout_width="wrap_content"
2017-06-02 23:25:11 +02:00
android:layout_height="wrap_content"
2017-09-24 10:39:54 +02:00
android:paddingStart="10dp"
2017-06-02 23:25:11 +02:00
android:text="60 min"
2021-02-03 22:40:13 +01:00
android:textAppearance="?android:attr/textAppearanceSmall"
tools:ignore="HardcodedText,RtlSymmetry" />
2017-06-02 23:25:11 +02:00
2021-04-29 20:42:45 +02:00
<TextView
android:id="@+id/spacer"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="" />
2018-01-21 13:37:38 +01:00
<TextView
android:id="@+id/invalid"
android:layout_width="wrap_content"
2018-01-21 13:37:38 +01:00
android:layout_height="wrap_content"
android:paddingEnd="10dp"
android:text="@string/invalid"
android:textAlignment="viewEnd"
2021-02-03 22:40:13 +01:00
android:textColor="@android:color/holo_red_light"
tools:ignore="RtlSymmetry" />
2018-01-21 13:37:38 +01:00
2019-12-01 20:42:23 +01:00
<TextView
android:id="@+id/clone"
2019-12-01 20:42:23 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="10dp"
2021-04-29 20:42:45 +02:00
android:paddingEnd="5dp"
2019-12-01 20:42:23 +01:00
android:text="@string/clone_label"
android:textAlignment="viewEnd"
android:textColor="@android:color/holo_blue_light" />
2017-06-02 23:25:11 +02:00
<TextView
android:id="@+id/remove"
2017-06-02 23:25:11 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-09-24 10:39:54 +02:00
android:paddingStart="10dp"
2021-04-29 20:42:45 +02:00
android:paddingEnd="5dp"
2021-02-22 18:04:30 +01:00
android:text="@string/remove_button"
2017-06-02 23:25:11 +02:00
android:textAlignment="viewEnd"
android:textColor="@android:color/holo_orange_light" />
2019-12-01 20:42:23 +01:00
2017-06-02 23:25:11 +02:00
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
2021-04-29 20:42:45 +02:00
android:layout_marginRight="5dp"
android:layout_marginBottom="5dp"
2021-02-04 12:03:34 +01:00
android:background="@color/list_delimiter" />
2017-06-02 23:25:11 +02:00
</LinearLayout>
2019-05-16 13:57:37 +02:00
</androidx.cardview.widget.CardView>