Automation/app/src/main/res/layout/activity_manage_trigger_notification.xml

192 lines
5.4 KiB
XML
Raw Normal View History

2021-03-26 23:11:36 +01:00
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
2021-03-27 14:11:39 +01:00
android:layout_height="wrap_content"
2021-06-12 18:56:03 +02:00
android:layout_margin="@dimen/default_margin" >
2021-03-26 23:11:36 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
2021-03-29 16:36:21 +02:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/notification"
android:textSize="25dp"
android:layout_marginBottom="@dimen/default_margin" />
2021-03-27 14:11:39 +01:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/default_margin"
android:text="@string/notificationTriggerExplanation" />
2021-03-26 23:11:36 +01:00
<TableLayout
android:layout_width="match_parent"
2021-06-12 18:56:03 +02:00
android:layout_height="wrap_content"
android:shrinkColumns="1"
android:stretchColumns="1">
2021-03-26 23:11:36 +01:00
2021-03-27 19:57:39 +01:00
<TableRow
android:layout_marginBottom="@dimen/activity_vertical_margin">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/direction"/>
<CheckBox
android:id="@+id/chkNotificationDirection"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/notificationAppears"
android:checked="true"/>
</TableRow>
2021-11-05 22:47:48 +01:00
<ImageView
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_margin="10dp"
android:layout_marginVertical="@dimen/default_margin"
android:background="#aa000000" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/automationNotificationsIgnored" />
2021-03-27 19:57:39 +01:00
<TableRow
android:layout_marginBottom="@dimen/activity_vertical_margin">
2021-03-26 23:11:36 +01:00
<TextView
android:layout_gravity="center_vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/application" />
<LinearLayout
2021-06-13 13:53:14 +02:00
android:orientation="vertical"
android:layout_marginHorizontal="@dimen/default_margin"
2021-03-26 23:11:36 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
2021-05-09 14:42:24 +02:00
android:id="@+id/etActivityOrActionPath"
2021-03-26 23:11:36 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/anyApp"
android:textAppearance="?android:attr/textAppearanceMedium" />
2021-03-27 14:11:39 +01:00
<Button
android:id="@+id/bSelectApp"
2021-06-13 13:53:14 +02:00
android:layout_marginTop="10dp"
2021-03-27 14:11:39 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/selectApplication" />
2021-03-26 23:11:36 +01:00
</LinearLayout>
</TableRow>
2021-11-05 22:47:48 +01:00
<ImageView
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_margin="10dp"
android:layout_marginVertical="@dimen/default_margin"
android:background="#aa000000" />
2022-06-27 23:02:53 +02:00
2022-01-11 16:04:04 +01:00
<TextView
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textStyle="bold"
android:text="@string/comparisonCaseInsensitive"
android:layout_marginBottom="@dimen/default_margin"/>
2022-06-27 23:02:53 +02:00
<TextView
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textStyle="bold"
android:text="@string/regularExpressionsIfEquals"
android:layout_marginBottom="@dimen/default_margin"/>
2021-11-05 22:47:48 +01:00
2021-03-27 19:57:39 +01:00
<TableRow
android:layout_marginBottom="@dimen/activity_vertical_margin">
2021-03-26 23:11:36 +01:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/title" />
<LinearLayout
2021-03-29 16:36:21 +02:00
android:orientation="vertical"
2021-03-26 23:11:36 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<Spinner
android:id="@+id/spinnerTitleDirection"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<EditText
android:id="@+id/etNotificationTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10" />
</LinearLayout>
</TableRow>
2021-11-05 22:47:48 +01:00
<ImageView
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_margin="10dp"
android:layout_marginVertical="@dimen/default_margin"
android:background="#aa000000" />
2021-03-26 23:11:36 +01:00
2021-03-27 19:57:39 +01:00
<TableRow
android:layout_marginBottom="@dimen/activity_vertical_margin">
2021-03-26 23:11:36 +01:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/text" />
<LinearLayout
2021-03-29 16:36:21 +02:00
android:orientation="vertical"
2021-03-26 23:11:36 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<Spinner
android:id="@+id/spinnerTextDirection"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<EditText
android:id="@+id/etNotificationText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10" />
</LinearLayout>
</TableRow>>
</TableLayout>
<Button
2022-01-11 16:04:04 +01:00
android:id="@+id/bSaveActionCloseNotification"
2021-03-27 14:11:39 +01:00
android:layout_marginTop="@dimen/default_margin"
2021-03-26 23:11:36 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/save" />
</LinearLayout>
</ScrollView>