1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2017 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<ScrollView
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content">
21
22    <LinearLayout
23        android:layout_width="match_parent"
24        android:layout_height="wrap_content"
25        android:orientation="vertical"
26        android:padding="8dp">
27
28        <RadioGroup
29            android:id="@+id/private_dns_radio_group"
30            android:layout_width="match_parent"
31            android:layout_height="wrap_content">
32
33            <RadioButton
34                android:id="@+id/private_dns_mode_off"
35                android:text="@string/private_dns_mode_off"
36                android:layout_width="wrap_content"
37                android:layout_height="wrap_content"
38                android:layout_marginStart="8dp"
39                android:minHeight="48dp"/>
40
41            <RadioButton
42                android:id="@+id/private_dns_mode_opportunistic"
43                android:text="@string/private_dns_mode_opportunistic"
44                android:layout_width="wrap_content"
45                android:layout_height="wrap_content"
46                android:layout_marginStart="8dp"
47                android:minHeight="48dp"/>
48
49            <RadioButton
50                android:id="@+id/private_dns_mode_provider"
51                android:text="@string/private_dns_mode_provider"
52                android:layout_width="wrap_content"
53                android:layout_height="wrap_content"
54                android:layout_marginStart="8dp"
55                android:minHeight="48dp"/>
56
57            <EditText
58                android:id="@+id/private_dns_mode_provider_hostname"
59                android:hint="@string/private_dns_mode_provider_hostname_hint"
60                style="@android:style/Widget.CompoundButton.RadioButton"
61                android:imeOptions="actionDone"
62                android:inputType="textFilter|textUri"
63                android:layout_width="match_parent"
64                android:layout_height="wrap_content"
65                android:layout_marginStart="40dp"
66                android:layout_marginEnd="8dp"
67                android:minHeight="48dp"/>
68        </RadioGroup>
69
70        <TextView
71            android:id="@+id/private_dns_help_info"
72            android:layout_width="match_parent"
73            android:layout_height="wrap_content"
74            android:layout_marginTop="8dp"
75            android:minHeight="48dp"
76            android:paddingStart="16dp"
77            android:textAppearance="?android:attr/textAppearanceSmall"/>
78    </LinearLayout>
79
80</ScrollView>
81
82