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

66 lines
2.3 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/rootLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
2019-12-03 21:07:31 +01:00
android:clickable="true"
android:focusable="true"
android:background="@color/ribbonDefault"
android:padding="8dp">
2019-08-23 21:48:00 +02:00
<CheckBox
android:id="@+id/enabled"
2019-08-23 21:48:00 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true" />
<TextView
android:id="@+id/eventTitle"
2019-08-23 21:48:00 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/enabled"
android:layout_alignBottom="@+id/enabled"
2019-08-23 21:48:00 +02:00
android:layout_centerVertical="true"
android:layout_marginTop="6dp"
android:layout_toStartOf="@+id/iconTrash"
android:layout_toEndOf="@id/enabled"
2019-08-23 21:48:00 +02:00
android:text="Title"
android:textAlignment="viewStart"
android:textStyle="bold" />
<ImageView
android:id="@+id/iconTrash"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginEnd="20dp"
android:layout_toStartOf="@+id/iconSort"
android:contentDescription="@string/remove_label"
android:orientation="horizontal"
android:src="@drawable/ic_trash_outline" />
<ImageView
2019-12-03 21:07:31 +01:00
android:id="@+id/iconSort"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
2019-12-03 21:07:31 +01:00
android:contentDescription="@string/reorder_label"
android:orientation="horizontal"
2020-10-19 19:24:33 +02:00
app:srcCompat="@drawable/ic_reorder_gray_24dp" />
<LinearLayout
2019-08-23 21:48:00 +02:00
android:id="@+id/iconLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/enabled"
2019-08-23 21:48:00 +02:00
android:orientation="horizontal" />
</RelativeLayout>