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

174 lines
6.8 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
2019-12-21 23:17:20 +01:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
2019-12-21 23:17:20 +01:00
android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context=".plugins.general.automation.dialogs.EditEventDialog">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-12-21 23:17:20 +01:00
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
2019-12-21 23:17:20 +01:00
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@color/dialog_title_background"
android:orientation="horizontal"
android:padding="5dp">
2019-12-21 23:17:20 +01:00
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-12-21 23:17:20 +01:00
android:contentDescription="@string/automation"
2020-10-19 19:24:33 +02:00
app:srcCompat="@drawable/ic_action_orange_48dp" />
<TextView
2019-12-21 23:17:20 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-12-21 23:17:20 +01:00
android:layout_centerInParent="true"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:text="@string/automation_event"
android:textAlignment="center"
android:textAppearance="?android:attr/textAppearanceLarge" />
</RelativeLayout>
2019-12-21 23:17:20 +01:00
<LinearLayout
android:id="@+id/spacer"
2019-07-16 21:57:45 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-12-21 23:17:20 +01:00
android:orientation="horizontal"
android:padding="5dp" />
2019-07-16 21:57:45 +02:00
2019-12-21 23:17:20 +01:00
<LinearLayout
2019-07-16 21:57:45 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-12-28 16:42:00 +01:00
android:orientation="vertical"
android:padding="10dp">
2019-07-16 21:57:45 +02:00
2019-12-21 23:17:20 +01:00
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/inputEventTitle"
2019-12-21 23:17:20 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/taskname" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/trigger_image"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_centerVertical="true"
2020-10-19 19:24:33 +02:00
app:srcCompat="@drawable/ic_trigger_green_48dp" />
2019-12-21 23:17:20 +01:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="10dp"
android:layout_toEndOf="@+id/trigger_image"
android:text="@string/condition"
android:textStyle="bold" />
<TextView
android:id="@+id/editTrigger"
2019-12-21 23:17:20 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:background="@color/ribbonDefault"
android:padding="8dp"
android:text="@string/edit_short" />
</RelativeLayout>
2019-12-21 23:17:20 +01:00
<TextView
android:id="@+id/triggerDescription"
2019-12-21 23:17:20 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:orientation="vertical" />
2018-12-05 21:22:32 +01:00
<TextView
android:id="@+id/forcedTriggerDescriptionLabel"
2019-12-21 23:17:20 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-12-21 23:17:20 +01:00
android:text="@string/preconditions"
2019-07-16 21:57:45 +02:00
android:textStyle="bold" />
<TextView
android:id="@+id/forcedTriggerDescription"
2019-12-21 23:17:20 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-12-21 23:17:20 +01:00
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:orientation="vertical" />
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
2021-02-04 12:03:34 +01:00
android:background="@color/list_delimiter" />
2019-12-21 23:17:20 +01:00
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/action_image"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_centerVertical="true"
2020-10-19 19:24:33 +02:00
app:srcCompat="@drawable/ic_action_orange_48dp" />
2019-12-21 23:17:20 +01:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="10dp"
android:layout_toEndOf="@+id/action_image"
android:text="@string/action"
android:textStyle="bold" />
<TextView
android:id="@+id/addAction"
2019-12-21 23:17:20 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:background="@color/ribbonDefault"
android:padding="8dp"
android:text="@string/add_short" />
</RelativeLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/actionListView"
2019-12-21 23:17:20 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp" />
2020-12-28 16:42:00 +01:00
<include
android:id="@+id/okcancel"
layout="@layout/okcancel" />
2019-12-21 23:17:20 +01:00
</LinearLayout>
</LinearLayout>
</ScrollView>