Debian Codegraph @

tests/JobSchedulerTestApp/res/layout/activity_main.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="utf-8"?>
2 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
3 android:layout_width="match_parent"
4 android:layout_height="match_parent"
5 android:orientation="vertical" >
6
7 <LinearLayout
8 android:layout_width="match_parent"
9 android:layout_height="match_parent"
10 android:layout_weight="1"
11 android:orientation="vertical">
12
13 <LinearLayout
14 android:layout_width="match_parent"
15 android:layout_height="100dp">
16 <TextView
17 android:id="@+id/onstart_textview"
18 android:layout_width="wrap_content"
19 android:layout_height="match_parent"
20 android:layout_weight="1"
21 android:background="@color/none_received"
22 android:gravity="center"
23 android:text="@string/onstarttask"/>
24 <TextView
25 android:id="@+id/onstop_textview"
26 android:layout_width="wrap_content"
27 android:layout_height="match_parent"
28 android:layout_weight="1"
29 android:background="@color/none_received"
30 android:gravity="center"
31 android:text="@string/onstoptask"/>
32 </LinearLayout>
33 <Button
34 android:id="@+id/finished_button"
35 android:layout_width="match_parent"
36 android:layout_height="wrap_content"
37 android:padding="20dp"
38 android:layout_marginBottom="5dp"
39 android:onClick="finishJob"
40 android:text="@string/finish_job_button_text"/>
41
42 <TextView
43 android:id="@+id/task_params"
44 android:layout_width="match_parent"
45 android:layout_height="wrap_content"
46 android:text="@string/defaultparamtext"
47 android:gravity="center"
48 android:textSize="20dp"
49
50 android:padding="15dp"
51 android:layout_marginBottom="10dp" />
52
53 <TextView
54 android:layout_width="match_parent"
55 android:layout_height="wrap_content"
56 android:text="@string/constraints"
57 android:layout_margin="15dp"
58 android:textSize="18dp"/>
59 <LinearLayout
60 android:layout_width="match_parent"
61 android:layout_height="wrap_content"
62 android:orientation="vertical"
63 android:layout_marginLeft="10dp">
64 <LinearLayout
65 android:layout_width="match_parent"
66 android:layout_height="wrap_content">
67 <TextView
68 android:layout_width="wrap_content"
69 android:layout_height="wrap_content"
70 android:text="@string/connectivity"
71 android:layout_marginRight="10dp"/>
72 <RadioGroup
73 android:layout_width="wrap_content"
74 android:layout_height="wrap_content"
75 android:orientation="horizontal">
76 <RadioButton android:id="@+id/checkbox_none"
77 android:layout_width="wrap_content"
78 android:layout_height="wrap_content"
79 android:text="@string/none"/>
80 <RadioButton android:id="@+id/checkbox_any"
81 android:layout_width="wrap_content"
82 android:layout_height="wrap_content"
83 android:text="@string/any"/>
84 <RadioButton android:id="@+id/checkbox_metered"
85 android:layout_width="wrap_content"
86 android:layout_height="wrap_content"
87 android:text="@string/metered"/>
88 <RadioButton android:id="@+id/checkbox_unmetered"
89 android:layout_width="wrap_content"
90 android:layout_height="wrap_content"
91 android:text="@string/unmetered"/>
92 </RadioGroup>
93
94 </LinearLayout>
95 <LinearLayout
96 android:layout_width="match_parent"
97 android:layout_height="wrap_content">
98 <TextView
99 android:layout_width="wrap_content"
100 android:layout_height="wrap_content"
101 android:text="@string/timing"/>
102 <TextView
103 android:layout_width="wrap_content"
104 android:layout_height="wrap_content"
105 android:layout_marginLeft="15dp"
106 android:textSize="17dp"
107 android:text="@string/delay"/>
108 <EditText
109 android:id="@+id/delay_time"
110 android:layout_width="60dp"
111 android:layout_height="wrap_content"
112 android:inputType="number"/>
113 <TextView
114 android:layout_width="wrap_content"
115 android:layout_height="wrap_content"
116 android:text="@string/deadline"
117 android:textSize="17dp"/>
118 <EditText
119 android:id="@+id/deadline_time"
120 android:layout_width="60dp"
121 android:layout_height="wrap_content"
122 android:inputType="number"/>
123 </LinearLayout>
124 <LinearLayout
125 android:layout_width="match_parent"
126 android:layout_height="wrap_content">
127 <TextView
128 android:layout_width="wrap_content"
129 android:layout_height="wrap_content"
130 android:text="@string/charging_caption"
131 android:layout_marginRight="15dp"/>
132 <CheckBox
133 android:layout_width="wrap_content"
134 android:layout_height="wrap_content"
135 android:id="@+id/checkbox_charging"
136 android:text="@string/charging_text"/>
137 </LinearLayout>
138 <LinearLayout
139 android:layout_width="match_parent"
140 android:layout_height="wrap_content">
141 <TextView
142 android:layout_width="wrap_content"
143 android:layout_height="wrap_content"
144 android:text="@string/idle_caption"
145 android:layout_marginRight="15dp"/>
146 <CheckBox
147 android:layout_width="wrap_content"
148 android:layout_height="wrap_content"
149 android:id="@+id/checkbox_idle"
150 android:text="@string/idle_mode_text"/>
151 </LinearLayout>
152 <LinearLayout
153 android:layout_width="match_parent"
154 android:layout_height="wrap_content">
155 <TextView
156 android:layout_width="wrap_content"
157 android:layout_height="wrap_content"
158 android:text="@string/persisted_caption"
159 android:layout_marginRight="15dp"/>
160 <CheckBox
161 android:layout_width="wrap_content"
162 android:layout_height="wrap_content"
163 android:id="@+id/checkbox_persisted"
164 android:text="@string/persisted_mode_text"/>
165 </LinearLayout>
166
167 </LinearLayout>
168 <Button
169 android:id="@+id/schedule_button"
170 android:layout_width="match_parent"
171 android:layout_height="wrap_content"
172 android:layout_marginTop="20dp"
173 android:layout_marginLeft="40dp"
174 android:layout_marginRight="40dp"
175 android:onClick="scheduleJob"
176 android:text="@string/schedule_job_button_text"/>
177 <Button
178 android:id="@+id/cancel_button"
179 android:layout_width="match_parent"
180 android:layout_height="wrap_content"
181 android:layout_marginLeft="40dp"
182 android:layout_marginRight="40dp"
183 android:onClick="cancelAllJobs"
184 android:text="@string/cancel_all_jobs_button_text"/>
185 </LinearLayout>
186 </ScrollView>