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

105 lines
4 KiB
XML
Raw Normal View History

2017-06-02 23:25:11 +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/profileswitch_cardview"
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:paddingEnd="5dp"
android:paddingStart="10dp"
2017-06-02 23:25:11 +02:00
android:text="{fa-clock-o}" />
<TextView
android:id="@+id/profileswitch_date"
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"
android:textAppearance="?android:attr/textAppearanceSmall" />
<TextView
android:id="@+id/profileswitch_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"
android:textAppearance="?android:attr/textAppearanceSmall" />
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/profileswitch_duration"
android:layout_width="wrap_content"
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="60 min"
android:textAppearance="?android:attr/textAppearanceSmall" />
2017-06-08 18:15:17 +02:00
<TextView
android:id="@+id/pump_sign"
2017-09-24 10:39:54 +02:00
android:layout_width="0dp"
2017-06-08 18:15:17 +02:00
android:layout_height="wrap_content"
2017-09-24 10:39:54 +02:00
android:paddingEnd="10dp"
2017-06-08 18:15:17 +02:00
android:text="PH"
2017-09-24 10:39:54 +02:00
android:textAlignment="viewEnd"
2017-06-08 18:15:17 +02:00
android:textColor="@color/colorSetTempButton" />
<TextView
android:id="@+id/ns_sign"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-09-24 10:39:54 +02:00
android:paddingEnd="10dp"
2017-06-08 18:15:17 +02:00
android:text="NS"
android:textColor="@color/colorSetTempButton" />
2017-06-02 23:25:11 +02:00
<TextView
android:id="@+id/profileswitch_remove"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-09-24 10:39:54 +02:00
android:paddingEnd="5dp"
android:paddingStart="10dp"
2017-06-02 23:25:11 +02:00
android:text="@string/overview_quickwizard_item_remove_button"
android:textAlignment="viewEnd"
android:textColor="@android:color/holo_orange_light" />
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
</LinearLayout>
</android.support.v7.widget.CardView>