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

209 lines
8.2 KiB
XML
Raw Normal View History

2016-06-06 10:42:46 +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/tempbasals_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-06 10:42:46 +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"
2016-07-11 17:49:09 +02:00
android:orientation="horizontal">
<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"
2016-07-11 17:49:09 +02:00
android:paddingRight="5dp"
android:text="{fa-clock-o}" />
2016-06-06 10:42:46 +02:00
<TextView
android:id="@+id/tempbasals_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1.1.2000 18:00"
android:textAppearance="?android:attr/textAppearanceSmall" />
2016-06-06 10:42:46 +02:00
<TextView
android:id="@+id/tempbasals_absolute"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="10dp"
android:text="0.25 U"
android:textAppearance="?android:attr/textAppearanceSmall" />
2016-06-06 10:42:46 +02:00
<TextView
android:id="@+id/tempbasals_percent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="10dp"
android:text="150%"
android:textAppearance="?android:attr/textAppearanceSmall" />
2016-06-06 10:42:46 +02:00
<TextView
android:id="@+id/tempbasals_duration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="10dp"
android:text="30 min"
android:textAppearance="?android:attr/textAppearanceSmall" />
2016-06-06 10:42:46 +02:00
2016-07-10 15:05:13 +02:00
<TextView
2016-07-11 17:49:09 +02:00
android:id="@+id/tempbasals_extendedflag"
2016-07-10 15:05:13 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="right"
2016-07-11 17:49:09 +02:00
android:paddingRight="5dp"
android:text="E"
android:textColor="@color/colorSetExtendedButton" />
2016-07-10 15:05:13 +02:00
2016-06-06 10:42:46 +02:00
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<TextView
android:id="@+id/tempbasals_realduration_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
2016-07-11 17:49:09 +02:00
android:paddingLeft="10dp"
2016-06-06 10:42:46 +02:00
android:paddingRight="5dp"
android:text="@string/tempbasals_realduration_label_string"
2016-07-11 17:49:09 +02:00
android:textAppearance="?android:attr/textAppearanceSmall" />
2016-06-06 10:42:46 +02:00
<TextView
android:id="@+id/tempbasals_realduration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2016-07-11 17:49:09 +02:00
android:paddingRight="10dp"
2016-06-06 10:42:46 +02:00
android:text="10 min"
2016-07-11 17:49:09 +02:00
android:textStyle="bold" />
2016-06-06 10:42:46 +02:00
<TextView
android:id="@+id/tempbasals_netratio_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:paddingRight="5dp"
android:text="@string/tempbasals_netratio_label_string"
2016-07-11 17:49:09 +02:00
android:textAppearance="?android:attr/textAppearanceSmall" />
2016-06-06 10:42:46 +02:00
<TextView
android:id="@+id/tempbasals_netratio"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2016-07-11 17:49:09 +02:00
android:paddingRight="10dp"
2016-06-06 10:42:46 +02:00
android:text="0.05 U/h"
2016-07-11 17:49:09 +02:00
android:textStyle="bold" />
2016-06-06 10:42:46 +02:00
<TextView
android:id="@+id/tempbasals_netinsulin_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:paddingRight="5dp"
android:text="@string/tempbasals_netinsulin_label_string"
2016-07-11 17:49:09 +02:00
android:textAppearance="?android:attr/textAppearanceSmall" />
2016-06-06 10:42:46 +02:00
<TextView
android:id="@+id/tempbasals_netinsulin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2016-07-11 17:49:09 +02:00
android:paddingRight="10dp"
2016-06-06 10:42:46 +02:00
android:text="0.05 U"
2016-07-11 17:49:09 +02:00
android:textStyle="bold" />
2017-06-08 18:15:17 +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-06 10:42:46 +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-06 10:42:46 +02:00
<TextView
android:id="@+id/tempbasals_iob_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:text="@string/tempbasals_iob_label_string"
2016-07-11 17:49:09 +02:00
android:textAppearance="?android:attr/textAppearanceSmall" />
2016-06-06 10:42:46 +02:00
<TextView
android:id="@+id/tempbasals_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:text="0.12 U"
android:textStyle="bold" />
2016-06-06 10:42:46 +02:00
2017-05-09 20:47:02 +02:00
<TextView
android:id="@+id/tempbasals_remove"
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"
android:textAlignment="viewEnd"
android:textColor="@android:color/holo_orange_light" />
2016-06-06 10:42:46 +02:00
</LinearLayout>
<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-06 10:42:46 +02:00
</LinearLayout>
</android.support.v7.widget.CardView>