1<?xml version="1.0" encoding="utf-8"?>
2<!--
3Copyright 2017 The Android Open Source Project
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9     http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16-->
17
18<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    android:orientation="vertical">
22
23    <LinearLayout
24        android:layout_width="match_parent"
25        android:layout_height="wrap_content"
26        android:orientation="vertical">
27
28        <LinearLayout
29            android:layout_width="match_parent"
30            android:layout_height="@dimen/layout_height">
31
32            <TextView
33                android:id="@+id/onstart_textview"
34                android:layout_width="wrap_content"
35                android:layout_height="match_parent"
36                android:layout_margin="@dimen/textview_margin"
37                android:layout_weight="1"
38                android:background="@color/none_received"
39                android:gravity="center"
40                android:text="@string/onstarttask" />
41
42            <TextView
43                android:id="@+id/onstop_textview"
44                android:layout_width="wrap_content"
45                android:layout_height="match_parent"
46                android:layout_margin="@dimen/textview_margin"
47                android:layout_weight="1"
48                android:background="@color/none_received"
49                android:gravity="center"
50                android:text="@string/onstoptask" />
51
52        </LinearLayout>
53
54        <TextView
55            android:id="@+id/task_params"
56            android:layout_width="match_parent"
57            android:layout_height="0dp"
58            android:layout_marginBottom="@dimen/textview_bottom_margin"
59            android:layout_weight="1"
60            android:gravity="center"
61            android:padding="@dimen/textview_margin"
62            android:textSize="@dimen/large_text_size" />
63
64        <Button
65            android:id="@+id/finished_button"
66            android:layout_width="match_parent"
67            android:layout_height="wrap_content"
68            android:padding="@dimen/button_padding"
69            android:layout_marginBottom="@dimen/button_bottom_margin"
70            android:layout_marginLeft="@dimen/button_horizontal_margins"
71            android:layout_marginRight="@dimen/button_horizontal_margins"
72            android:text="@string/finish_job_button_text" />
73
74        <TableLayout
75            android:layout_width="match_parent"
76            android:layout_height="match_parent"
77            android:layout_margin="@dimen/table_margin">
78
79            <TableRow
80                android:layout_width="match_parent"
81                android:layout_height="match_parent">
82
83                <TextView
84                    android:layout_width="match_parent"
85                    android:layout_height="match_parent"
86                    android:layout_marginEnd="@dimen/textview_margin"
87                    android:labelFor="@id/duration_time"
88                    android:gravity="end|center_vertical"
89                    android:text="@string/work_duration"
90                    android:textSize="@dimen/default_text_size" />
91
92                <EditText
93                    android:id="@+id/duration_time"
94                    android:layout_width="@dimen/edittext_width"
95                    android:layout_height="wrap_content"
96                    android:inputType="number"
97                    android:text="@string/default_duration_time" />
98
99            </TableRow>
100
101            <TableRow
102                android:layout_width="match_parent"
103                android:layout_height="match_parent">
104
105                <TextView
106                    android:layout_width="match_parent"
107                    android:layout_height="match_parent"
108                    android:layout_marginEnd="@dimen/textview_margin"
109                    android:gravity="end|center_vertical"
110                    android:text="@string/connectivity"
111                    android:textSize="@dimen/default_text_size" />
112
113                <RadioGroup
114                    android:layout_width="wrap_content"
115                    android:layout_height="wrap_content"
116                    android:orientation="horizontal">
117
118                    <RadioButton
119                        android:id="@+id/checkbox_any"
120                        android:layout_width="wrap_content"
121                        android:layout_height="wrap_content"
122                        android:checked="true"
123                        android:text="@string/any" />
124
125                    <RadioButton
126                        android:id="@+id/checkbox_unmetered"
127                        android:layout_width="wrap_content"
128                        android:layout_height="wrap_content"
129                        android:text="@string/unmetered" />
130
131                </RadioGroup>
132
133            </TableRow>
134
135            <TableRow
136                android:layout_width="match_parent"
137                android:layout_height="match_parent">
138
139                <TextView
140                    android:layout_width="match_parent"
141                    android:layout_height="match_parent"
142                    android:layout_marginEnd="@dimen/textview_margin"
143                    android:gravity="end|center_vertical"
144                    android:text="@string/delay"
145                    android:textSize="@dimen/default_text_size" />
146
147                <LinearLayout
148                    android:layout_width="match_parent"
149                    android:layout_height="match_parent"
150                    android:orientation="horizontal">
151
152                    <TextView
153                        android:layout_width="wrap_content"
154                        android:layout_height="wrap_content"
155                        android:labelFor="@id/delay_time"
156                        android:text="@string/timing" />
157
158                    <EditText
159                        android:id="@+id/delay_time"
160                        android:layout_width="@dimen/edittext_width"
161                        android:layout_height="wrap_content"
162                        android:inputType="number"
163                        android:text="@string/default_delay_time" />
164
165                    <TextView
166                        android:layout_width="wrap_content"
167                        android:layout_height="wrap_content"
168                        android:labelFor="@id/deadline_time"
169                        android:text="@string/deadline"
170                        android:textSize="@dimen/default_text_size" />
171
172                    <EditText
173                        android:id="@+id/deadline_time"
174                        android:layout_width="@dimen/edittext_width"
175                        android:layout_height="wrap_content"
176                        android:inputType="number"
177                        android:text="@string/default_deadline_time" />
178
179                </LinearLayout>
180
181            </TableRow>
182
183            <TableRow
184                android:layout_width="match_parent"
185                android:layout_height="match_parent"
186                android:layout_weight="1">
187
188                <TextView
189                    android:layout_width="match_parent"
190                    android:layout_height="match_parent"
191                    android:layout_marginEnd="@dimen/tablerow_margin_end"
192                    android:gravity="end|center_vertical"
193                    android:text="@string/charging_caption"
194                    android:textSize="@dimen/default_text_size" />
195
196                <CheckBox
197                    android:id="@+id/checkbox_charging"
198                    android:layout_width="wrap_content"
199                    android:layout_height="wrap_content"
200                    android:text="@string/charging_text" />
201
202            </TableRow>
203
204            <TableRow
205                android:layout_width="match_parent"
206                android:layout_height="match_parent"
207                android:layout_weight="1">
208
209                <TextView
210                    android:layout_width="match_parent"
211                    android:layout_height="match_parent"
212                    android:layout_marginEnd="@dimen/tablerow_margin_end"
213                    android:gravity="end|center_vertical"
214                    android:text="@string/idle_caption" />
215
216                <CheckBox
217                    android:id="@+id/checkbox_idle"
218                    android:layout_width="wrap_content"
219                    android:layout_height="wrap_content"
220                    android:text="@string/idle_mode_text" />
221
222            </TableRow>
223
224        </TableLayout>
225
226        <Button
227            android:id="@+id/schedule_button"
228            android:layout_width="match_parent"
229            android:layout_height="wrap_content"
230            android:layout_marginTop="@dimen/button_top_margin"
231            android:layout_marginLeft="@dimen/button_horizontal_margins"
232            android:layout_marginRight="@dimen/button_horizontal_margins"
233            android:text="@string/schedule_job_button_text" />
234        <Button
235            android:id="@+id/cancel_button"
236            android:layout_width="match_parent"
237            android:layout_height="wrap_content"
238            android:layout_marginLeft="@dimen/button_horizontal_margins"
239            android:layout_marginRight="@dimen/button_horizontal_margins"
240            android:text="@string/cancel_all_jobs_button_text" />
241
242    </LinearLayout>
243
244</ScrollView>
245