fragment_notification_dialog.xml 4.8 KB
Newer Older
Robert Hitt's avatar
Robert Hitt committed
1 2
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
3 4 5
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
Robert Hitt's avatar
Robert Hitt committed
6

7
    <LinearLayout
Robert Hitt's avatar
Robert Hitt committed
8
        android:layout_width="match_parent"
9 10
        android:layout_height="match_parent"
        android:orientation="vertical">
Robert Hitt's avatar
Robert Hitt committed
11 12 13

        <LinearLayout
            android:layout_width="match_parent"
14 15 16
            android:layout_height="match_parent"
            android:orientation="vertical"
            android:padding="8dp">
Robert Hitt's avatar
Robert Hitt committed
17 18

            <TextView
19 20 21
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingBottom="2dp"
Robert Hitt's avatar
Robert Hitt committed
22 23
                android:paddingLeft="2dp"
                android:paddingRight="2dp"
24
                android:paddingStart="2dp"
Robert Hitt's avatar
Robert Hitt committed
25
                android:paddingTop="2dp"
26
                android:text="Notification Type" />
Robert Hitt's avatar
Robert Hitt committed
27

28 29 30 31 32
            <View
                android:layout_width="fill_parent"
                android:layout_height="1dip"
                android:background="#9e9e9e" />

Robert Hitt's avatar
Robert Hitt committed
33 34 35
            <CheckBox
                android:id="@+id/type_opening_check"
                android:layout_width="match_parent"
36 37
                android:layout_height="wrap_content"
                android:text="Opening" />
Robert Hitt's avatar
Robert Hitt committed
38 39 40 41

            <CheckBox
                android:id="@+id/type_closing_check"
                android:layout_width="match_parent"
42 43
                android:layout_height="wrap_content"
                android:text="Closing" />
Robert Hitt's avatar
Robert Hitt committed
44 45 46 47 48

        </LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
49 50 51
            android:layout_height="match_parent"
            android:orientation="vertical"
            android:padding="8dp">
Robert Hitt's avatar
Robert Hitt committed
52 53

            <TextView
54 55 56
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingBottom="2dp"
Robert Hitt's avatar
Robert Hitt committed
57 58
                android:paddingLeft="2dp"
                android:paddingRight="2dp"
59
                android:paddingStart="2dp"
Robert Hitt's avatar
Robert Hitt committed
60
                android:paddingTop="2dp"
61
                android:text="Notification Interval" />
Robert Hitt's avatar
Robert Hitt committed
62

63 64 65 66 67
            <View
                android:layout_width="fill_parent"
                android:layout_height="1dip"
                android:background="#9e9e9e" />

Robert Hitt's avatar
Robert Hitt committed
68 69 70
            <CheckBox
                android:id="@+id/interval_on_check"
                android:layout_width="match_parent"
71 72
                android:layout_height="wrap_content"
                android:text="On opening/closing" />
Robert Hitt's avatar
Robert Hitt committed
73 74 75 76

            <CheckBox
                android:id="@+id/interval_15_check"
                android:layout_width="match_parent"
77 78
                android:layout_height="wrap_content"
                android:text="15 minutes before" />
Robert Hitt's avatar
Robert Hitt committed
79 80 81 82

            <CheckBox
                android:id="@+id/interval_30_check"
                android:layout_width="match_parent"
83 84
                android:layout_height="wrap_content"
                android:text="30 minutes before" />
Robert Hitt's avatar
Robert Hitt committed
85 86 87 88

            <CheckBox
                android:id="@+id/interval_hour_check"
                android:layout_width="match_parent"
89 90
                android:layout_height="wrap_content"
                android:text="An hour before" />
Robert Hitt's avatar
Robert Hitt committed
91 92 93 94

        </LinearLayout>


95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:padding="4dp">

            <Button
                android:id="@+id/cancel_button"
                style="?android:borderlessButtonStyle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_toLeftOf="@+id/remove_button"
                android:layout_toStartOf="@+id/remove_button"
                android:text="Cancel"
                android:textColor="@color/colorPrimary" />

            <Button
                android:id="@+id/remove_button"
                style="?android:borderlessButtonStyle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_toLeftOf="@+id/save_button"
                android:layout_toStartOf="@+id/save_button"
                android:text="Remove"
                android:textColor="@color/colorPrimary"
                android:visibility="gone" />

            <Button
                android:id="@+id/save_button"
                style="?android:borderlessButtonStyle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentEnd="true"
                android:layout_alignParentRight="true"
                android:text="Save"
                android:textColor="@color/colorPrimary" />

        </RelativeLayout>

    </LinearLayout>
134
</ScrollView>