|
50 | 50 |
|
51 | 51 | <com.google.android.material.textview.MaterialTextView
|
52 | 52 | android:id="@+id/interface_title"
|
53 |
| - style="@style/SectionText" |
54 | 53 | android:layout_width="wrap_content"
|
55 | 54 | android:layout_height="wrap_content"
|
56 | 55 | android:text="@string/interface_title"
|
| 56 | + android:textAppearance="?attr/textAppearanceTitleMedium" |
57 | 57 | app:layout_constraintStart_toStartOf="parent"
|
58 | 58 | app:layout_constraintTop_toTopOf="parent" />
|
59 | 59 |
|
|
81 | 81 |
|
82 | 82 | <TextView
|
83 | 83 | android:id="@+id/interface_name_text"
|
84 |
| - style="@style/DetailText" |
85 | 84 | android:layout_width="match_parent"
|
86 | 85 | android:layout_height="wrap_content"
|
87 | 86 | android:contentDescription="@string/name"
|
|
90 | 89 | android:nextFocusForward="@id/public_key_text"
|
91 | 90 | android:onClick="@{ClipboardUtils::copyTextView}"
|
92 | 91 | android:text="@{tunnel.name}"
|
| 92 | + android:textAppearance="?attr/textAppearanceBodyLarge" |
93 | 93 | app:layout_constraintStart_toStartOf="parent"
|
94 | 94 | app:layout_constraintTop_toBottomOf="@+id/interface_name_label"
|
95 | 95 | tools:text="wg0" />
|
|
106 | 106 |
|
107 | 107 | <TextView
|
108 | 108 | android:id="@+id/public_key_text"
|
109 |
| - style="@style/DetailText" |
110 | 109 | android:layout_width="match_parent"
|
111 | 110 | android:layout_height="wrap_content"
|
112 | 111 | android:contentDescription="@string/public_key"
|
|
118 | 117 | android:onClick="@{ClipboardUtils::copyTextView}"
|
119 | 118 | android:singleLine="true"
|
120 | 119 | android:text="@{config.interface.keyPair.publicKey.toBase64}"
|
| 120 | + android:textAppearance="?attr/textAppearanceBodyLarge" |
121 | 121 | app:layout_constraintStart_toStartOf="parent"
|
122 | 122 | app:layout_constraintTop_toBottomOf="@+id/public_key_label"
|
123 | 123 | tools:text="wOs2eguFEohqIZxlSJ1CAT9584tc6ejj9hfGFsoBVkA=" />
|
|
135 | 135 |
|
136 | 136 | <TextView
|
137 | 137 | android:id="@+id/addresses_text"
|
138 |
| - style="@style/DetailText" |
139 | 138 | android:layout_width="match_parent"
|
140 | 139 | android:layout_height="wrap_content"
|
141 | 140 | android:contentDescription="@string/addresses"
|
|
144 | 143 | android:nextFocusForward="@id/dns_servers_text"
|
145 | 144 | android:onClick="@{ClipboardUtils::copyTextView}"
|
146 | 145 | android:text="@{config.interface.addresses}"
|
| 146 | + android:textAppearance="?attr/textAppearanceBodyLarge" |
147 | 147 | android:visibility="@{config.interface.addresses.isEmpty() ? android.view.View.GONE : android.view.View.VISIBLE}"
|
148 | 148 | app:layout_constraintStart_toStartOf="parent"
|
149 | 149 | app:layout_constraintTop_toBottomOf="@+id/addresses_label"
|
|
162 | 162 |
|
163 | 163 | <TextView
|
164 | 164 | android:id="@+id/dns_servers_text"
|
165 |
| - style="@style/DetailText" |
166 | 165 | android:layout_width="match_parent"
|
167 | 166 | android:layout_height="wrap_content"
|
168 | 167 | android:contentDescription="@string/dns_servers"
|
|
171 | 170 | android:nextFocusForward="@id/dns_search_domains_text"
|
172 | 171 | android:onClick="@{ClipboardUtils::copyTextView}"
|
173 | 172 | android:text="@{config.interface.dnsServers}"
|
| 173 | + android:textAppearance="?attr/textAppearanceBodyLarge" |
174 | 174 | android:visibility="@{config.interface.dnsServers.isEmpty() ? android.view.View.GONE : android.view.View.VISIBLE}"
|
175 | 175 | app:layout_constraintStart_toStartOf="parent"
|
176 | 176 | app:layout_constraintTop_toBottomOf="@+id/dns_servers_label"
|
|
189 | 189 |
|
190 | 190 | <TextView
|
191 | 191 | android:id="@+id/dns_search_domains_text"
|
192 |
| - style="@style/DetailText" |
193 | 192 | android:layout_width="match_parent"
|
194 | 193 | android:layout_height="wrap_content"
|
195 | 194 | android:contentDescription="@string/dns_search_domains"
|
|
198 | 197 | android:nextFocusForward="@id/listen_port_text"
|
199 | 198 | android:onClick="@{ClipboardUtils::copyTextView}"
|
200 | 199 | android:text="@{config.interface.dnsSearchDomains}"
|
| 200 | + android:textAppearance="?attr/textAppearanceBodyLarge" |
201 | 201 | android:visibility="@{config.interface.dnsSearchDomains.isEmpty() ? android.view.View.GONE : android.view.View.VISIBLE}"
|
202 | 202 | app:layout_constraintStart_toStartOf="parent"
|
203 | 203 | app:layout_constraintTop_toBottomOf="@+id/dns_search_domains_label"
|
|
218 | 218 |
|
219 | 219 | <TextView
|
220 | 220 | android:id="@+id/listen_port_text"
|
221 |
| - style="@style/DetailText" |
222 | 221 | android:layout_width="0dp"
|
223 | 222 | android:layout_height="wrap_content"
|
224 | 223 | android:contentDescription="@string/listen_port"
|
|
228 | 227 | android:nextFocusForward="@id/mtu_text"
|
229 | 228 | android:onClick="@{ClipboardUtils::copyTextView}"
|
230 | 229 | android:text="@{config.interface.listenPort}"
|
| 230 | + android:textAppearance="?attr/textAppearanceBodyLarge" |
231 | 231 | android:visibility="@{!config.interface.listenPort.isPresent() ? android.view.View.GONE : android.view.View.VISIBLE}"
|
232 | 232 | app:layout_constraintEnd_toStartOf="@id/mtu_label"
|
233 | 233 | app:layout_constraintHorizontal_weight="0.5"
|
|
251 | 251 |
|
252 | 252 | <TextView
|
253 | 253 | android:id="@+id/mtu_text"
|
254 |
| - style="@style/DetailText" |
255 | 254 | android:layout_width="0dp"
|
256 | 255 | android:layout_height="wrap_content"
|
257 | 256 | android:contentDescription="@string/mtu"
|
|
260 | 259 | android:nextFocusForward="@id/applications_text"
|
261 | 260 | android:onClick="@{ClipboardUtils::copyTextView}"
|
262 | 261 | android:text="@{config.interface.mtu}"
|
| 262 | + android:textAppearance="?attr/textAppearanceBodyLarge" |
263 | 263 | android:visibility="@{!config.interface.mtu.isPresent() ? android.view.View.GONE : android.view.View.VISIBLE}"
|
264 | 264 | app:layout_constraintEnd_toEndOf="parent"
|
265 | 265 | app:layout_constraintHorizontal_weight="0.5"
|
|
283 | 283 | android:labelFor="@+id/applications_text"
|
284 | 284 | android:text="@string/applications"
|
285 | 285 | android:visibility="@{config.interface.includedApplications.isEmpty() && config.interface.excludedApplications.isEmpty() ? android.view.View.GONE : android.view.View.VISIBLE}"
|
286 |
| - app:layout_constraintTop_toBottomOf="@+id/listen_port_mtu_barrier" |
287 |
| - app:layout_constraintStart_toStartOf="parent" /> |
| 286 | + app:layout_constraintStart_toStartOf="parent" |
| 287 | + app:layout_constraintTop_toBottomOf="@+id/listen_port_mtu_barrier" /> |
288 | 288 |
|
289 | 289 | <TextView
|
290 | 290 | android:id="@+id/applications_text"
|
291 |
| - style="@style/DetailText" |
292 | 291 | android:layout_width="match_parent"
|
293 | 292 | android:layout_height="wrap_content"
|
294 | 293 | android:contentDescription="@string/applications"
|
|
297 | 296 | android:nextFocusForward="@id/peers_layout"
|
298 | 297 | android:onClick="@{ClipboardUtils::copyTextView}"
|
299 | 298 | android:text="@{config.interface.includedApplications.isEmpty() ? @plurals/n_excluded_applications(config.interface.excludedApplications.size(), config.interface.excludedApplications.size()) : @plurals/n_included_applications(config.interface.includedApplications.size(), config.interface.includedApplications.size())}"
|
| 299 | + android:textAppearance="?attr/textAppearanceBodyLarge" |
300 | 300 | android:visibility="@{config.interface.includedApplications.isEmpty() && config.interface.excludedApplications.isEmpty() ? android.view.View.GONE : android.view.View.VISIBLE}"
|
301 |
| - app:layout_constraintTop_toBottomOf="@+id/applications_label" |
302 | 301 | app:layout_constraintStart_toStartOf="parent"
|
| 302 | + app:layout_constraintTop_toBottomOf="@+id/applications_label" |
303 | 303 | tools:text="8 excluded" />
|
304 | 304 | </androidx.constraintlayout.widget.ConstraintLayout>
|
305 | 305 | </com.google.android.material.card.MaterialCardView>
|
|
0 commit comments