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

150 lines
5.8 KiB
XML
Raw Normal View History

2017-01-13 23:43:17 +01: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/temptargetrange_cardview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
2017-05-24 19:42:23 +02:00
card_view:cardBackgroundColor="?android:colorBackground">
2017-01-13 23:43:17 +01: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">
<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"
2017-05-24 19:42:23 +02:00
android:paddingLeft="10dp"
2017-01-13 23:43:17 +01:00
android:paddingRight="5dp"
2017-05-24 19:42:23 +02:00
android:text="{fa-clock-o}" />
2017-01-13 23:43:17 +01:00
<TextView
android:id="@+id/temptargetrange_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="10dp"
android:text="1.1.2000 18:00"
2017-05-24 19:42:23 +02:00
android:textAppearance="?android:attr/textAppearanceSmall" />
2017-01-13 23:43:17 +01:00
<TextView
android:id="@+id/temptargetrange_low"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="10dp"
android:text="80"
2017-05-24 19:42:23 +02:00
android:textAppearance="?android:attr/textAppearanceSmall" />
2017-01-13 23:43:17 +01:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="5dp"
android:text="-"
2017-05-24 19:42:23 +02:00
android:textAppearance="?android:attr/textAppearanceSmall" />
2017-01-13 23:43:17 +01:00
<TextView
android:id="@+id/temptargetrange_high"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="5dp"
android:text="100"
2017-05-24 19:42:23 +02:00
android:textAppearance="?android:attr/textAppearanceSmall" />
2017-01-13 23:43:17 +01:00
<TextView
android:id="@+id/temptargetrange_duration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="10dp"
android:text="30 min"
2017-05-24 19:42:23 +02:00
android:textAppearance="?android:attr/textAppearanceSmall" />
2017-01-13 23:43:17 +01:00
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" />
2017-01-13 23:43:17 +01:00
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<TextView
2017-01-21 11:22:03 +01:00
android:id="@+id/temptargetrange_reason_label"
2017-01-13 23:43:17 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:paddingLeft="10dp"
android:text="@string/reason"
android:textAppearance="?android:attr/textAppearanceSmall" />
<TextView
2017-01-21 11:22:03 +01:00
android:id="@+id/temptargetrange_reason_colon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="5dp"
android:text=":" />
2017-01-13 23:43:17 +01:00
<TextView
android:id="@+id/temptargetrange_reason"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2017-05-24 19:42:23 +02:00
android:layout_weight="1"
2017-01-13 23:43:17 +01:00
android:paddingRight="10dp"
android:text="Activity"
android:textStyle="bold" />
<TextView
2017-05-24 19:42:23 +02:00
android:id="@+id/temptargetrange_remove"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-05-24 19:42:23 +02:00
android:layout_marginRight="10dp"
android:text="@string/overview_quickwizard_item_remove_button"
android:textAlignment="viewEnd"
android:textColor="@android:color/holo_orange_light" />
2017-01-13 23:43:17 +01:00
</LinearLayout>
2017-05-24 19:42:23 +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" />
2017-01-13 23:43:17 +01:00
</LinearLayout>
</android.support.v7.widget.CardView>