summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/time_dialog.xml
blob: 8ada0d6cff2b62e5cad641f1fed3cd530975f85e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="vertical"
              android:gravity="center"
              android:padding="16dp">

    <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/timeSetup"
            android:orientation="vertical">

        <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal">

            <EditText
                    android:id="@+id/etxtTime"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:layout_margin="8dp"
                    android:ems="2"
                    android:inputType="number"
                    android:maxLength="3"/>

            <Spinner
                    android:id="@+id/spTimeUnit"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="8dp"
                    android:layout_marginTop="8dp"/>
        </LinearLayout>

        <Button
                android:text="@string/set_sleeptimer_label"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:id="@+id/setSleeptimerButton"/>
    </LinearLayout>

    <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/timeDisplay"
            android:orientation="vertical"
            android:visibility="gone">

        <TextView
                android:text="00:00:00"
                android:layout_gravity="center"
                android:textSize="32sp"
                android:textColor="?android:attr/textColorPrimary"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:id="@+id/time"/>

        <Button
                android:text="@string/disable_sleeptimer_label"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:id="@+id/disableSleeptimerButton"/>

    </LinearLayout>


    <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:layout_marginTop="8dp">

        <CheckBox
                android:id="@+id/cbShakeToReset"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/shake_to_reset_label"/>

        <CheckBox
                android:id="@+id/cbVibrate"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/timer_vibration_label"/>

        <CheckBox
                android:id="@+id/chAutoEnable"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/auto_enable_label"/>

    </LinearLayout>

</LinearLayout>