2018-09-25 00:00:09 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-07-11 19:18:05 +02:00
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-09-25 00:00:09 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:context="info.nightscout.androidaps.plugins.general.automation.dialogs.EditEventDialog">
|
|
|
|
|
2019-07-11 19:18:05 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="10dp">
|
2018-10-15 23:20:06 +02:00
|
|
|
|
2019-07-11 19:18:05 +02:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
2019-07-18 23:49:59 +02:00
|
|
|
android:id="@+id/automation_inputEventTitle"
|
2018-09-25 00:00:09 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-07-11 19:18:05 +02:00
|
|
|
android:hint="@string/taskname" />
|
2018-09-25 00:00:09 +02:00
|
|
|
|
2019-07-11 19:18:05 +02:00
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:background="@color/listdelimiter" />
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
2018-09-25 00:00:09 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-07-16 21:57:45 +02:00
|
|
|
android:text="@string/condition"
|
|
|
|
android:textStyle="bold" />
|
2019-07-11 19:18:05 +02:00
|
|
|
|
|
|
|
<TextView
|
2019-07-18 23:49:59 +02:00
|
|
|
android:id="@+id/automation_editTrigger"
|
2019-07-11 19:18:05 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:background="@color/ribbonDefault"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:text="@string/edit_short" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<TextView
|
2019-07-18 23:49:59 +02:00
|
|
|
android:id="@+id/automation_triggerDescription"
|
2019-07-11 19:18:05 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_marginBottom="10dp"
|
|
|
|
android:orientation="vertical" />
|
|
|
|
|
2019-07-16 21:57:45 +02:00
|
|
|
<TextView
|
2019-07-18 23:49:59 +02:00
|
|
|
android:id="@+id/automation_forcedTriggerDescriptionLabel"
|
2019-07-16 21:57:45 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/preconditions"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<TextView
|
2019-07-18 23:49:59 +02:00
|
|
|
android:id="@+id/automation_forcedTriggerDescription"
|
2019-07-16 21:57:45 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_marginBottom="10dp"
|
|
|
|
android:orientation="vertical" />
|
|
|
|
|
2019-07-11 19:18:05 +02:00
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:background="@color/listdelimiter" />
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2018-12-05 21:22:32 +01:00
|
|
|
|
|
|
|
<TextView
|
2019-07-11 19:18:05 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-07-16 21:57:45 +02:00
|
|
|
android:text="@string/action"
|
|
|
|
android:textStyle="bold" />
|
2019-07-11 19:18:05 +02:00
|
|
|
|
|
|
|
<TextView
|
2019-07-18 23:49:59 +02:00
|
|
|
android:id="@+id/automation_addAction"
|
2019-07-11 19:18:05 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:background="@color/ribbonDefault"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:text="@string/add_short" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2019-07-18 23:49:59 +02:00
|
|
|
android:id="@+id/automation_actionListView"
|
2019-07-11 19:18:05 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_marginBottom="10dp" />
|
|
|
|
|
2019-07-23 00:04:44 +02:00
|
|
|
<include layout="@layout/okcancel" />
|
2019-07-11 19:18:05 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</ScrollView>
|