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

293 lines
11 KiB
XML
Raw Normal View History

2016-06-05 14:53:03 +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"
2016-06-05 14:53:03 +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"
2016-06-05 14:53:03 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
card_view:cardBackgroundColor="?attr/cardItemBackgroundColor">
2016-06-05 14:53:03 +02: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:text="1.1.2000"
android:textAppearance="?android:attr/textAppearanceMedium"
tools:ignore="HardcodedText" />
2016-06-05 14:53:03 +02:00
<LinearLayout
2021-03-25 23:52:08 +01:00
android:id="@+id/metadata_layout"
2016-06-05 14:53:03 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:baselineAligned="true"
android:orientation="horizontal">
2016-07-11 17:49:09 +02:00
<com.joanzapata.iconify.widget.IconTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2021-03-25 17:48:07 +01:00
android:layout_marginStart="5dp"
2021-02-03 22:40:13 +01:00
android:gravity="center"
android:text="{fa-clock-o}"
tools:ignore="HardcodedText,RtlSymmetry" />
2016-07-11 17:49:09 +02:00
2016-06-05 14:53:03 +02:00
<TextView
2022-02-10 19:21:42 +01:00
android:id="@+id/calc_time"
2016-06-05 14:53:03 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-03-25 17:48:07 +01:00
android:layout_marginStart="5dp"
2022-02-10 19:21:42 +01:00
android:text="11:45"
2021-03-25 17:48:07 +01:00
tools:ignore="HardcodedText,RtlSymmetry" />
<TextView
2021-02-03 22:40:13 +01:00
android:layout_width="0dp"
android:layout_height="wrap_content"
2021-02-03 22:40:13 +01:00
android:layout_marginEnd="10dp"
android:layout_weight="1"
2021-03-25 17:48:07 +01:00
android:text="" />
<TextView
android:id="@+id/calculation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:text="@string/calculation_short"
android:textAlignment="viewEnd"
android:textColor="@color/colorCalculatorButton"
tools:ignore="RtlSymmetry" />
2016-06-05 14:53:03 +02:00
</LinearLayout>
<LinearLayout
2021-03-25 17:48:07 +01:00
android:id="@+id/bolus_layout"
2016-06-05 14:53:03 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
2021-03-25 17:48:07 +01:00
<com.joanzapata.iconify.widget.IconTextView
2016-06-05 14:53:03 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-03-25 17:48:07 +01:00
android:layout_gravity="center_vertical"
2022-02-10 19:21:42 +01:00
android:layout_marginStart="5dp"
2021-03-25 17:48:07 +01:00
android:gravity="center"
android:text="{fa-clock-o}"
tools:ignore="HardcodedText,RtlSymmetry" />
2016-06-05 14:53:03 +02:00
<TextView
2022-02-10 19:21:42 +01:00
android:id="@+id/bolus_time"
2016-06-05 14:53:03 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-03-25 17:48:07 +01:00
android:layout_marginStart="5dp"
2022-02-10 19:21:42 +01:00
android:text="11:45"
2021-03-25 17:48:07 +01:00
tools:ignore="HardcodedText,RtlSymmetry" />
2016-06-05 14:53:03 +02:00
<TextView
2021-03-25 17:48:07 +01:00
android:id="@+id/insulin"
2016-06-05 14:53:03 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2021-03-30 19:37:26 +02:00
android:layout_marginStart="10dp"
android:text="1.00 U"
android:textStyle="bold"
tools:ignore="HardcodedText" />
2017-06-07 19:43:19 +02:00
2021-03-25 23:52:08 +01:00
<TextView
2021-04-29 20:42:45 +02:00
android:id="@+id/iob_label"
2021-03-25 23:52:08 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginStart="10dp"
2021-03-30 19:37:26 +02:00
android:layout_marginEnd="5dp"
2021-03-25 23:52:08 +01:00
android:text="@string/treatments_iob_label_string" />
<TextView
android:id="@+id/iob"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2021-03-30 19:37:26 +02:00
android:text="0.45U"
android:textStyle="bold"
tools:ignore="HardcodedText" />
2021-03-25 23:52:08 +01:00
2017-06-07 19:43:19 +02:00
<TextView
2021-02-03 22:40:13 +01:00
android:layout_width="0dp"
2017-06-07 19:43:19 +02:00
android:layout_height="wrap_content"
2021-03-30 19:37:26 +02:00
android:layout_marginEnd="5dp"
2017-06-07 19:43:19 +02:00
android:layout_weight="1"
android:text="" />
2021-03-25 23:52:08 +01:00
<TextView
android:id="@+id/meal_or_correction"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Meal"
android:textAlignment="textEnd"
tools:ignore="HardcodedText" />
2017-06-07 19:43:19 +02:00
<TextView
2021-03-25 17:48:07 +01:00
android:id="@+id/bolus_ns"
2017-06-07 19:43:19 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-03-30 19:37:26 +02:00
android:layout_marginStart="5dp"
2021-03-25 17:48:07 +01:00
android:text="NS"
android:textColor="?attr/setTempButton"
2021-02-03 22:40:13 +01:00
tools:ignore="HardcodedText" />
2017-06-07 19:43:19 +02:00
<TextView
2021-03-25 17:48:07 +01:00
android:id="@+id/bolus_pump"
2017-06-07 19:43:19 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-03-30 19:37:26 +02:00
android:layout_marginStart="5dp"
2021-03-25 17:48:07 +01:00
android:text="PH"
android:textColor="?attr/setTempButton"
2021-02-03 22:40:13 +01:00
tools:ignore="HardcodedText" />
2017-06-07 19:43:19 +02:00
2017-08-17 20:51:24 +02:00
<TextView
2021-03-25 17:48:07 +01:00
android:id="@+id/bolus_invalid"
2017-08-17 20:51:24 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-03-30 19:37:26 +02:00
android:layout_marginStart="5dp"
2017-08-17 20:51:24 +02:00
android:text="@string/invalid"
android:textColor="@android:color/holo_red_light" />
2022-02-22 21:11:15 +01:00
<CheckBox
android:id="@+id/cb_bolus_remove"
2021-03-25 17:48:07 +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" />
2021-03-25 17:48:07 +01:00
2021-03-30 19:37:26 +02:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp" />
2016-06-05 14:53:03 +02:00
</LinearLayout>
<LinearLayout
2021-03-25 17:48:07 +01:00
android:id="@+id/carbs_layout"
2016-06-05 14:53:03 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
2016-07-11 17:49:09 +02:00
2021-03-25 17:48:07 +01:00
<com.joanzapata.iconify.widget.IconTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2022-02-10 19:21:42 +01:00
android:layout_marginStart="5dp"
2021-03-25 17:48:07 +01:00
android:gravity="center"
android:text="{fa-clock-o}"
tools:ignore="HardcodedText,RtlSymmetry" />
2016-06-05 14:53:03 +02:00
<TextView
2022-02-10 19:21:42 +01:00
android:id="@+id/carbs_time"
2016-06-05 14:53:03 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-03-25 17:48:07 +01:00
android:layout_marginStart="5dp"
2022-02-10 19:21:42 +01:00
android:text="11:45"
2021-03-25 17:48:07 +01:00
tools:ignore="HardcodedText,RtlSymmetry" />
2016-06-05 14:53:03 +02:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-03-25 17:48:07 +01:00
android:layout_gravity="top"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:text="@string/treatments_carbs_label_string" />
2016-06-05 14:53:03 +02:00
<TextView
2021-03-25 17:48:07 +01:00
android:id="@+id/carbs"
2016-06-05 14:53:03 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2016-07-11 17:49:09 +02:00
android:textStyle="bold" />
2016-06-05 14:53:03 +02:00
2021-03-30 19:37:26 +02:00
<TextView
android:id="@+id/carbs_duration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2021-03-30 22:05:44 +02:00
android:layout_marginStart="10dp"
2021-03-30 19:37:26 +02:00
android:textStyle="bold" />
2017-02-14 21:13:13 +01:00
<TextView
2021-02-03 22:40:13 +01:00
android:layout_width="0dp"
2017-02-14 21:13:13 +01:00
android:layout_height="wrap_content"
2017-05-09 20:47:02 +02:00
android:layout_weight="1"
2021-03-25 17:48:07 +01:00
android:text="" />
<TextView
android:id="@+id/carbs_ns"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-03-30 19:37:26 +02:00
android:layout_marginStart="5dp"
2021-03-25 17:48:07 +01:00
android:text="NS"
android:textColor="?attr/setTempButton"
2021-03-25 17:48:07 +01:00
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/carbs_pump"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-03-30 19:37:26 +02:00
android:layout_marginStart="5dp"
2021-03-25 17:48:07 +01:00
android:text="PH"
android:textColor="?attr/setTempButton"
2021-03-25 17:48:07 +01:00
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/carbs_invalid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-03-30 19:37:26 +02:00
android:layout_marginStart="5dp"
2021-03-25 17:48:07 +01:00
android:text="@string/invalid"
android:textColor="@android:color/holo_red_light" />
2018-08-20 19:32:18 +02:00
<TextView
2021-03-25 17:48:07 +01:00
android:id="@+id/carbs_remove"
2022-02-22 21:11:15 +01:00
android:visibility="gone"
2018-08-20 19:32:18 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-03-30 19:37:26 +02:00
android:layout_marginStart="5dp"
2022-02-22 21:11:15 +01:00
2021-02-22 18:04:30 +01:00
android:text="@string/remove_button"
2017-02-14 21:13:13 +01:00
android:textAlignment="viewEnd"
android:textColor="@android:color/holo_orange_light" />
2016-06-05 14:53:03 +02:00
2022-02-22 21:11:15 +01:00
<CheckBox
android:id="@+id/cb_carbs_remove"
android:visibility="gone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
2021-03-30 19:37:26 +02:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp" />
2016-06-05 14:53:03 +02:00
</LinearLayout>
2017-05-22 22:10:56 +02:00
<View
2022-02-10 19:21:42 +01:00
android:id="@+id/delimiter"
2017-05-22 22:10:56 +02:00
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
2021-03-30 19:37:26 +02:00
android:layout_marginRight="5dp"
android:layout_marginBottom="5dp"
android:background="?android:attr/dividerHorizontal" />
2017-05-22 22:10:56 +02:00
2016-06-05 14:53:03 +02:00
</LinearLayout>
2019-05-16 13:57:37 +02:00
</androidx.cardview.widget.CardView>