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

86 lines
3.1 KiB
XML
Raw Normal View History

2017-12-15 01:03:31 +01: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"
2017-12-15 01:03:31 +01:00
xmlns:card_view="http://schemas.android.com/apk/res-auto"
2022-02-10 19:21:42 +01:00
android:id="@+id/bg_card"
2017-12-15 01:03:31 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
card_view:cardBackgroundColor="@color/cardColorBackground"
2022-02-10 19:21:42 +01:00
card_view:cardUseCompatPadding="true">
2017-12-15 01:03:31 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2022-02-10 19:21:42 +01:00
android:orientation="vertical">
2017-12-15 01:03:31 +01:00
2021-11-30 22:03:19 +01:00
<TextView
android:id="@+id/date"
2022-02-10 19:21:42 +01:00
android:layout_width="match_parent"
2017-12-15 01:03:31 +01:00
android:layout_height="wrap_content"
2022-02-10 19:21:42 +01:00
android:background="@color/list_delimiter"
android:gravity="center"
android:text="1.1.2000"
android:textAppearance="?android:attr/textAppearanceMedium" />
2017-12-15 01:03:31 +01:00
2022-02-10 19:21:42 +01:00
<LinearLayout
android:layout_width="match_parent"
2021-11-30 22:03:19 +01:00
android:layout_height="wrap_content"
2022-02-10 19:21:42 +01:00
android:gravity="center"
android:orientation="horizontal"
android:padding="6dp">
2017-12-15 01:03:31 +01:00
2022-02-10 19:21:42 +01:00
<TextView
android:id="@+id/time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="16:55"
android:textStyle="bold" />
2017-12-15 01:03:31 +01:00
2022-02-10 19:21:42 +01:00
<TextView
android:id="@+id/value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="10dp"
android:text="Name"
android:textStyle="bold" />
2017-12-15 01:03:31 +01:00
2022-02-10 19:21:42 +01:00
<ImageView
android:id="@+id/direction"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
card_view:srcCompat="@drawable/ic_flat" />
2017-12-15 01:03:31 +01:00
2022-02-10 19:21:42 +01:00
<TextView
android:id="@+id/ns"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="10dp"
android:text="NS"
android:textAlignment="viewEnd"
android:textColor="@color/colorSetTempButton" />
<TextView
android:id="@+id/invalid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="10dp"
android:text="@string/invalid"
android:textColor="@android:color/holo_red_light" />
<TextView
android:id="@+id/remove"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="10dp"
android:paddingEnd="5dp"
android:text="@string/remove_button"
android:textAlignment="viewEnd"
android:textColor="@android:color/holo_orange_light" />
</LinearLayout>
2017-12-15 01:03:31 +01:00
</LinearLayout>
2019-05-16 13:57:37 +02:00
</androidx.cardview.widget.CardView>