-
-
Notifications
You must be signed in to change notification settings - Fork 160
/
Copy pathdialog_set_custom_doh.xml
141 lines (130 loc) · 6.24 KB
/
dialog_set_custom_doh.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="20dp">
<TextView
android:id="@+id/dialog_custom_url_top"
style="@style/TextAppearance.AppCompat.Subhead"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:text="@string/cd_doh_dialog_heading"
android:textSize="@dimen/large_font_text_view"
app:layout_constraintTop_toTopOf="parent" />
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/text_input_layout_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:hint="@string/cd_doh_dialog_resolver_name"
app:hintTextColor="?attr/accentGood"
app:layout_constraintTop_toBottomOf="@id/dialog_custom_url_top">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/dialog_custom_name_edit_text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
android:inputType="textNoSuggestions"
android:maxLines="2"
android:padding="10dp"
android:textColor="?attr/primaryTextColor"
android:textSize="@dimen/large_font_text_view"
app:layout_constraintRight_toLeftOf="parent"
app:layout_constraintTop_toBottomOf="@id/dialog_custom_url_top" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/text_input_layout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/cd_doh_dialog_resolver_url"
app:hintTextColor="?attr/accentGood"
app:layout_constraintTop_toBottomOf="@id/text_input_layout_name">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/dialog_custom_url_edit_text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
android:inputType="textUri"
android:maxLines="2"
android:padding="10dp"
android:text="https://"
android:textColor="?attr/primaryTextColor"
android:textSize="@dimen/large_font_text_view"
app:layout_constraintRight_toLeftOf="parent"
app:layout_constraintTop_toBottomOf="@id/text_input_layout_name" />
</com.google.android.material.textfield.TextInputLayout>
<androidx.appcompat.widget.AppCompatCheckBox
android:id="@+id/dialog_secure_checkbox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:buttonTint="?attr/accentGood"
android:foregroundTint="?attr/accentGood"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:text="@string/cd_doh_dialog_checkbox_desc"
app:layout_constraintTop_toBottomOf="@id/text_input_layout1" />
<TextView
android:id="@+id/dialog_custom_url_failure_text"
style="@style/TextAppearance.AppCompat.Body1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
android:padding="5dp"
android:text="@string/settings_http_proxy_error_text4"
android:textColor="@color/colorRed_A400"
android:textSize="@dimen/default_font_text_view"
android:visibility="invisible"
app:layout_constraintTop_toBottomOf="@id/dialog_secure_checkbox" />
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/dialog_custom_url_ok_btn"
style="@style/Widget.AppCompat.Button.ButtonBar.AlertDialog"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
android:text="@string/lbl_add"
android:textColor="?attr/accentGood"
android:textSize="@dimen/large_font_text_view"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/dialog_custom_url_failure_text" />
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/dialog_custom_url_cancel_btn"
style="@style/Widget.AppCompat.Button.ButtonBar.AlertDialog"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="10dp"
android:gravity="center"
android:text="@string/lbl_cancel"
android:textColor="?attr/accentGood"
android:textSize="@dimen/large_font_text_view"
app:layout_constraintEnd_toStartOf="@id/dialog_custom_url_ok_btn"
app:layout_constraintTop_toBottomOf="@id/dialog_custom_url_failure_text" />
<ProgressBar
android:id="@+id/dialog_custom_url_loading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="40dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="20dp"
android:layout_marginBottom="10dp"
android:visibility="invisible"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/dialog_custom_url_failure_text" />
</androidx.constraintlayout.widget.ConstraintLayout>