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

70 lines
2.4 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"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
card_view:cardBackgroundColor="@color/cardColorBackground"
card_view:cardCornerRadius="6dp"
card_view:cardUseCompatPadding="true"
card_view:contentPadding="6dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-11-30 22:03:19 +01:00
android:gravity="center"
android:orientation="horizontal">
2017-12-15 01:03:31 +01:00
2021-11-30 22:03:19 +01:00
<TextView
android:id="@+id/date"
android:layout_width="wrap_content"
2017-12-15 01:03:31 +01:00
android:layout_height="wrap_content"
2021-11-30 22:03:19 +01:00
android:text="16:55"
android:textStyle="bold" />
2017-12-15 01:03:31 +01:00
2021-11-30 22:03:19 +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
2021-11-30 22:03:19 +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
2021-11-30 22:03:19 +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" />
2017-12-15 01:03:31 +01:00
2021-11-30 22:03:19 +01:00
<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" />
2017-12-15 01:03:31 +01:00
2021-11-30 22:03:19 +01:00
<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" />
2017-12-15 01:03:31 +01:00
</LinearLayout>
2019-05-16 13:57:37 +02:00
</androidx.cardview.widget.CardView>