]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/http_authentication_dialog.xml
First wrong button text in View Headers in night theme. https://redmine.stoutner...
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / http_authentication_dialog.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2017,2019-2022 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android>.
7
8   Privacy Browser Android is free software: you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation, either version 3 of the License, or
11   (at your option) any later version.
12
13   Privacy Browser Android is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   You should have received a copy of the GNU General Public License
19   along with Privacy Browser Android.  If not, see <http://www.gnu.org/licenses/>. -->
20
21 <ScrollView
22     xmlns:android="http://schemas.android.com/apk/res/android"
23     xmlns:app="http://schemas.android.com/apk/res-auto"
24     android:layout_height="wrap_content"
25     android:layout_width="match_parent" >
26
27     <LinearLayout
28         android:layout_height="wrap_content"
29         android:layout_width="match_parent"
30         android:orientation="vertical"
31         android:layout_marginStart="4dp"
32         android:layout_marginEnd="4dp" >
33
34         <TextView
35             android:id="@+id/http_authentication_realm"
36             android:layout_height="wrap_content"
37             android:layout_width="wrap_content"
38             android:layout_marginTop="12dp"
39             android:layout_gravity="center_horizontal"
40             android:textSize="26sp"
41             android:textStyle="bold"
42             android:textColor="?android:textColorPrimary" />
43
44         <TextView
45             android:id="@+id/http_authentication_host"
46             android:layout_height="wrap_content"
47             android:layout_width="wrap_content"
48             android:layout_marginTop="6dp"
49             android:layout_marginBottom="6dp"
50             android:layout_marginStart="4dp"
51             android:layout_marginEnd="4dp"
52             android:textSize="16sp"
53             android:textColor="?android:textColorPrimary" />
54
55         <!-- The `TextInputLayout` makes the `android:hint` float above the `EditText`. -->
56         <com.google.android.material.textfield.TextInputLayout
57             android:layout_height="wrap_content"
58             android:layout_width="match_parent"
59             android:layout_marginTop="6dp" >
60
61             <!-- `android:imeOptions="actionGo"` sets the keyboard to have a `go` key instead of a `new line` key.  `android:inputType="textUri"` disables spell check in the `EditText`. -->
62             <com.google.android.material.textfield.TextInputEditText
63                 android:id="@+id/http_authentication_username"
64                 android:layout_height="wrap_content"
65                 android:layout_width="match_parent"
66                 android:hint="@string/username"
67                 android:imeOptions="actionGo"
68                 android:inputType="textUri"
69                 android:selectAllOnFocus="true" />
70         </com.google.android.material.textfield.TextInputLayout>
71
72         <!-- The `TextInputLayout` makes the `android:hint` float above the `EditText`. -->
73         <com.google.android.material.textfield.TextInputLayout
74             android:layout_height="wrap_content"
75             android:layout_width="match_parent"
76             app:passwordToggleEnabled="true" >
77
78             <!-- `android:imeOptions="actionGo"` sets the keyboard to have a `go` key instead of a `new line` key. -->
79             <com.google.android.material.textfield.TextInputEditText
80                 android:id="@+id/http_authentication_password"
81                 android:layout_height="wrap_content"
82                 android:layout_width="match_parent"
83                 android:hint="@string/password"
84                 android:imeOptions="actionGo"
85                 android:inputType="textPassword" />
86         </com.google.android.material.textfield.TextInputLayout>
87     </LinearLayout>
88 </ScrollView>