2016-06-05 14:53:03 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:id="@+id/treatments_cardview"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
2017-05-22 22:10:56 +02:00
|
|
|
card_view:cardBackgroundColor="?android:colorBackground">
|
2016-06-05 14:53:03 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
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"
|
|
|
|
android:gravity="center_vertical|right"
|
|
|
|
android:paddingLeft="10dp"
|
2017-05-22 22:10:56 +02:00
|
|
|
android:text="{fa-clock-o}" />
|
2016-07-11 17:49:09 +02:00
|
|
|
|
2016-06-05 14:53:03 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/treatments_date"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-05-22 22:10:56 +02:00
|
|
|
android:paddingLeft="5dp" />
|
2016-06-05 14:53:03 +02:00
|
|
|
|
2016-10-25 23:33:02 +02:00
|
|
|
<TextView
|
2017-05-22 22:10:56 +02:00
|
|
|
android:id="@+id/treatments_mealorcorrection"
|
2016-10-25 23:33:02 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-05-22 22:10:56 +02:00
|
|
|
android:layout_marginRight="10dp"
|
2016-10-25 23:33:02 +02:00
|
|
|
android:layout_weight="1"
|
2017-05-22 22:10:56 +02:00
|
|
|
android:text="Meal"
|
|
|
|
android:textAlignment="textEnd" />
|
2016-10-25 23:33:02 +02:00
|
|
|
|
2016-06-05 14:53:03 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/treatments_insulin_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="top"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingRight="10dp"
|
2016-07-11 17:49:09 +02:00
|
|
|
android:text="@string/treatments_insulin_label_string" />
|
2016-06-05 14:53:03 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/treatments_insulin"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginRight="30dp"
|
2016-07-11 17:49:09 +02:00
|
|
|
android:textStyle="bold" />
|
2016-06-05 14:53:03 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/treatments_carbs_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="top"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingRight="10dp"
|
2016-07-11 17:49:09 +02:00
|
|
|
android:text="@string/treatments_carbs_label_string" />
|
2016-06-05 14:53:03 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/treatments_carbs"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginRight="30dp"
|
2016-07-11 17:49:09 +02:00
|
|
|
android:textStyle="bold" />
|
2017-06-07 19:43:19 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:text="" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/pump_sign"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:text="PH"
|
|
|
|
android:textColor="@color/colorSetTempButton" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/ns_sign"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:text="NS"
|
|
|
|
android:textColor="@color/colorSetTempButton" />
|
|
|
|
|
2016-06-05 14:53:03 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="horizontal">
|
2016-07-11 17:49:09 +02:00
|
|
|
|
2016-06-05 14:53:03 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/treatments_iob_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="top"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingRight="10dp"
|
2016-07-11 17:49:09 +02:00
|
|
|
android:text="@string/treatments_iob_label_string" />
|
2016-06-05 14:53:03 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/treatments_iob"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginRight="30dp"
|
2016-07-11 17:49:09 +02:00
|
|
|
android:textStyle="bold" />
|
2016-06-05 14:53:03 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/treatments_activity_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="top"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingRight="10dp"
|
2016-07-11 17:49:09 +02:00
|
|
|
android:text="@string/treatments_activity_string" />
|
2016-06-05 14:53:03 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/treatments_activity"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginRight="30dp"
|
2016-07-11 17:49:09 +02:00
|
|
|
android:textStyle="bold" />
|
2016-06-05 14:53:03 +02:00
|
|
|
|
2017-02-14 21:13:13 +01:00
|
|
|
<TextView
|
2017-05-09 20:47:02 +02:00
|
|
|
android:id="@+id/treatments_remove"
|
2017-02-14 21:13:13 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-05-22 22:10:56 +02:00
|
|
|
android:layout_marginRight="10dp"
|
2017-05-09 20:47:02 +02:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:text="@string/overview_quickwizard_item_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
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-05-22 22:10:56 +02:00
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:background="@color/listdelimiter" />
|
|
|
|
|
2016-06-05 14:53:03 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</android.support.v7.widget.CardView>
|