1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2023 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 20 android:orientation="vertical"> 21 22 <LinearLayout 23 android:layout_height="wrap_content" 24 android:layout_width="match_parent" 25 android:orientation="horizontal"> 26 <Spinner 27 android:id="@+id/remote_task_type_spinner" 28 android:layout_height="wrap_content" 29 android:layout_width="wrap_content" /> 30 <TextView 31 android:id="@+id/remote_task_data_title" 32 android:layout_width="wrap_content" 33 android:layout_height="wrap_content" 34 android:text="@string/remote_task_data_title" /> 35 <EditText 36 android:id="@+id/remote_task_data" 37 android:layout_height="wrap_content" 38 android:layout_width="wrap_content" 39 android:inputType="text" /> 40 </LinearLayout> 41 42 <LinearLayout 43 android:layout_height="wrap_content" 44 android:layout_width="match_parent" 45 android:orientation="horizontal"> 46 <TextView 47 android:id="@+id/task_delay_title" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:text="@string/task_delay_title" /> 51 <EditText 52 android:id="@+id/task_delay" 53 android:layout_height="wrap_content" 54 android:layout_width="40dp" 55 android:inputType="number" 56 android:text="10" /> 57 <TextView 58 android:id="@+id/task_repeat_title" 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:text="@string/task_repeat_title"/> 62 <EditText 63 android:id="@+id/task_repeat" 64 android:layout_height="wrap_content" 65 android:layout_width="40dp" 66 android:inputType="number" 67 android:text="1" /> 68 <TextView 69 android:id="@+id/task_interval_title" 70 android:layout_width="wrap_content" 71 android:layout_height="wrap_content" 72 android:text="@string/task_interval_title"/> 73 <EditText 74 android:id="@+id/task_interval" 75 android:layout_height="wrap_content" 76 android:layout_width="40dp" 77 android:inputType="number" /> 78 </LinearLayout> 79 80 <LinearLayout 81 android:layout_height="wrap_content" 82 android:layout_width="match_parent" 83 android:orientation="horizontal"> 84 <Button 85 android:id="@+id/schedule_task_btn" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:text="@string/schedule_task"/> 89 </LinearLayout> 90 91 <LinearLayout 92 android:layout_height="wrap_content" 93 android:layout_width="match_parent" 94 android:orientation="horizontal"> 95 <Button 96 android:id="@+id/refresh_remote_task_btn" 97 android:layout_width="wrap_content" 98 android:layout_height="wrap_content" 99 android:text="@string/refresh_remote_task"/> 100 <Button 101 android:id="@+id/clear_remote_task_btn" 102 android:layout_width="wrap_content" 103 android:layout_height="wrap_content" 104 android:text="@string/clear_remote_task"/> 105 </LinearLayout> 106 107 <TableLayout 108 android:id="@+id/remote_task_list" 109 android:layout_width="900dp" 110 android:layout_height="wrap_content"> 111 112 <TableRow 113 android:id="@+id/task_list_title" 114 android:layout_width="match_parent" 115 android:layout_height="match_parent"> 116 <TextView 117 android:id="@+id/task_time_title" 118 android:layout_width="0dp" 119 android:layout_height="wrap_content" 120 android:layout_weight="1" 121 android:text="@string/task_time" /> 122 <TextView 123 android:id="@+id/task_id_title" 124 android:layout_width="0dp" 125 android:layout_height="wrap_content" 126 android:layout_weight="1" 127 android:text="@string/task_id" /> 128 <TextView 129 android:id="@+id/task_data_title" 130 android:layout_width="0dp" 131 android:layout_height="wrap_content" 132 android:layout_weight="1" 133 android:text="@string/task_data" /> 134 <TextView 135 android:id="@+id/remaining_time_title" 136 android:layout_width="0dp" 137 android:layout_height="wrap_content" 138 android:layout_weight="1" 139 android:text="@string/remaining_time_sec" /> 140 </TableRow> 141 </TableLayout> 142 143</LinearLayout> 144