1<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2013 The Android Open Source Project
2
3     Licensed under the Apache License, Version 2.0 (the "License");
4     you may not use this file except in compliance with the License.
5     You may obtain a copy of the License at
6
7          http://www.apache.org/licenses/LICENSE-2.0
8
9     Unless required by applicable law or agreed to in writing, software
10     distributed under the License is distributed on an "AS IS" BASIS,
11     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12     See the License for the specific language governing permissions and
13     limitations under the License.
14-->
15
16<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
17    android:layout_width="match_parent"
18    android:layout_height="match_parent"
19    xmlns:app="http://schemas.android.com/apk/res-auto">
20
21    <LinearLayout
22        android:layout_width="match_parent"
23        android:layout_height="wrap_content"
24        android:orientation="vertical">
25
26        <androidx.appcompat.widget.AppCompatButton
27            android:id="@+id/open_system_routes"
28            android:layout_width="match_parent"
29            android:layout_height="wrap_content"
30            android:text="@string/settings_activity_show_system_routes" />
31
32        <Button
33            android:id="@+id/go_to_route_listing_preference_button"
34            android:layout_width="match_parent"
35            android:layout_height="wrap_content"
36            android:text="Route listing preference"/>
37
38        <RelativeLayout
39            android:layout_width="match_parent"
40            android:layout_height="50dp"
41            android:layout_margin="12dp"
42            android:padding="4dp">
43
44            <Switch
45                android:id="@+id/show_this_phone_switch"
46                android:layout_width="wrap_content"
47                android:layout_height="match_parent"
48                android:layout_alignParentEnd="true"
49                android:layout_alignParentRight="true"
50                android:layout_centerVertical="true" />
51
52            <TextView
53                android:layout_width="wrap_content"
54                android:layout_height="wrap_content"
55                android:layout_alignParentLeft="true"
56                android:layout_alignParentStart="true"
57                android:layout_centerVertical="true"
58                android:gravity="center"
59                android:text="Transfer to local Enabled" />
60
61        </RelativeLayout>
62
63        <RelativeLayout
64            android:layout_width="match_parent"
65            android:layout_height="50dp"
66            android:layout_margin="12dp"
67            android:padding="4dp">
68
69            <Switch
70                android:id="@+id/dynamic_routing_switch"
71                android:layout_width="wrap_content"
72                android:layout_height="match_parent"
73                android:layout_alignParentEnd="true"
74                android:layout_alignParentRight="true"
75                android:layout_centerVertical="true" />
76
77            <TextView
78                android:layout_width="wrap_content"
79                android:layout_height="wrap_content"
80                android:layout_alignParentLeft="true"
81                android:layout_alignParentStart="true"
82                android:layout_centerVertical="true"
83                android:gravity="center"
84                android:text="Enable dynamic routing (For next routes only)" />
85
86        </RelativeLayout>
87
88        <RelativeLayout
89            android:layout_width="match_parent"
90            android:layout_height="50dp"
91            android:layout_margin="12dp"
92            android:padding="4dp">
93
94            <Switch
95                android:id="@+id/enable_dynamic_provider_switch"
96                android:layout_width="wrap_content"
97                android:layout_height="match_parent"
98                android:layout_alignParentEnd="true"
99                android:layout_alignParentRight="true"
100                android:layout_centerVertical="true" />
101
102            <TextView
103                android:layout_width="wrap_content"
104                android:layout_height="wrap_content"
105                android:layout_alignParentLeft="true"
106                android:layout_alignParentStart="true"
107                android:layout_centerVertical="true"
108                android:gravity="center"
109                android:text="Enable dynamic route provider" />
110
111        </RelativeLayout>
112
113        <RelativeLayout
114            android:layout_width="match_parent"
115            android:layout_height="50dp"
116            android:layout_margin="12dp"
117            android:padding="4dp">
118
119            <Switch
120                android:id="@+id/enable_simple_provider_switch"
121                android:layout_width="wrap_content"
122                android:layout_height="match_parent"
123                android:layout_alignParentEnd="true"
124                android:layout_alignParentRight="true"
125                android:layout_centerVertical="true" />
126
127            <TextView
128                android:layout_width="wrap_content"
129                android:layout_height="wrap_content"
130                android:layout_alignParentLeft="true"
131                android:layout_alignParentStart="true"
132                android:layout_centerVertical="true"
133                android:gravity="center"
134                android:text="Enable simple route provider" />
135
136        </RelativeLayout>
137
138        <RelativeLayout
139            android:layout_width="match_parent"
140            android:layout_height="50dp"
141            android:layout_margin="12dp"
142            android:padding="4dp">
143
144            <Switch
145                android:id="@+id/enable_wrapper_provider_switch"
146                android:layout_width="wrap_content"
147                android:layout_height="match_parent"
148                android:layout_alignParentEnd="true"
149                android:layout_alignParentRight="true"
150                android:layout_centerVertical="true" />
151
152            <TextView
153                android:layout_width="wrap_content"
154                android:layout_height="wrap_content"
155                android:layout_alignParentLeft="true"
156                android:layout_alignParentStart="true"
157                android:layout_centerVertical="true"
158                android:gravity="center"
159                android:text="Enable wrapper route provider" />
160
161        </RelativeLayout>
162
163        <RelativeLayout
164            android:layout_width="match_parent"
165            android:layout_height="50dp"
166            android:layout_margin="12dp"
167            android:padding="4dp">
168
169            <Spinner
170                android:id="@+id/dialog_spinner"
171                android:layout_width="wrap_content"
172                android:layout_height="match_parent"
173                android:layout_alignParentEnd="true"
174                android:layout_alignParentRight="true"
175                android:layout_centerVertical="true" />
176
177            <TextView
178                android:layout_width="wrap_content"
179                android:layout_height="wrap_content"
180                android:layout_alignParentLeft="true"
181                android:layout_alignParentStart="true"
182                android:layout_centerVertical="true"
183                android:gravity="center"
184                android:text="Dialog Type" />
185
186        </RelativeLayout>
187
188        <androidx.recyclerview.widget.RecyclerView
189            android:id="@+id/routes_recycler_view"
190            android:layout_width="match_parent"
191            android:layout_height="0dp"
192            android:layout_weight="1" />
193
194    </LinearLayout>
195
196    <com.google.android.material.floatingactionbutton.FloatingActionButton
197        android:id="@+id/new_route_button"
198        android:layout_width="wrap_content"
199        android:layout_height="wrap_content"
200        android:layout_alignParentBottom="true"
201        android:layout_alignParentEnd="true"
202        android:layout_alignParentRight="true"
203        android:layout_margin="20dp"
204        android:padding="0dp"
205        app:srcCompat="@drawable/ic_add" />
206
207</RelativeLayout>