]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/create_bookmark_dialog.xml
First wrong button text in View Headers in night theme. https://redmine.stoutner...
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / create_bookmark_dialog.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright 2016-2019, 2022, 2024 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 xmlns:android="http://schemas.android.com/apk/res/android"
22     android:layout_height="wrap_content"
23     android:layout_width="match_parent"
24     xmlns:tools="http://schemas.android.com/tools" >
25
26     <LinearLayout
27         android:layout_height="wrap_content"
28         android:layout_width="match_parent"
29         android:orientation="vertical" >
30
31         <!-- Webpage favorite icon. -->
32         <LinearLayout
33             android:id="@+id/webpage_favorite_icon_linearlayout"
34             android:layout_height="wrap_content"
35             android:layout_width="match_parent"
36             android:orientation="horizontal"
37             android:layout_marginTop="12dp"
38             android:layout_marginBottom="6dp" >
39
40             <RadioButton
41                 android:id="@+id/webpage_favorite_icon_radiobutton"
42                 android:layout_height="wrap_content"
43                 android:layout_width="wrap_content"
44                 android:layout_gravity="center_vertical"
45                 android:checked="true" />
46
47             <ImageView
48                 android:id="@+id/webpage_favorite_icon_imageview"
49                 android:layout_height="30dp"
50                 android:layout_width="30dp"
51                 android:layout_gravity="center_vertical"
52                 tools:ignore="ContentDescription" />
53
54             <TextView
55                 android:layout_height="wrap_content"
56                 android:layout_width="wrap_content"
57                 android:layout_marginStart="7dp"
58                 android:layout_gravity="center_vertical"
59                 android:text="@string/webpage_favorite_icon"
60                 android:textSize="18sp"
61                 android:textColor="?android:textColorPrimary" />
62         </LinearLayout>
63
64         <!-- Custom icon. -->
65         <LinearLayout
66             android:id="@+id/custom_icon_linearlayout"
67             android:layout_height="wrap_content"
68             android:layout_width="match_parent"
69             android:orientation="horizontal"
70             android:layout_marginTop="6dp" >
71
72             <RadioButton
73                 android:id="@+id/custom_icon_radiobutton"
74                 android:layout_height="wrap_content"
75                 android:layout_width="wrap_content"
76                 android:layout_gravity="center_vertical" />
77
78             <ImageView
79                 android:id="@+id/custom_icon_imageview"
80                 android:layout_width="30dp"
81                 android:layout_height="30dp"
82                 android:layout_gravity="center_vertical"
83                 tools:ignore="ContentDescription" />
84
85             <TextView
86                 android:layout_height="wrap_content"
87                 android:layout_width="wrap_content"
88                 android:layout_marginStart="7dp"
89                 android:layout_gravity="center_vertical"
90                 android:text="@string/custom_bookmark_icon"
91                 android:textSize="18sp"
92                 android:textColor="?android:textColorPrimary" />
93         </LinearLayout>
94
95         <!-- Browse button. -->
96         <Button
97             android:id="@+id/browse_button"
98             android:layout_height="wrap_content"
99             android:layout_width="wrap_content"
100             android:layout_gravity="center_horizontal"
101             android:text="@string/browse"
102             android:layout_marginBottom="12dp" />
103
104         <!-- The `TextInputLayout` makes the `android:hint` float above the edit text. -->
105         <com.google.android.material.textfield.TextInputLayout
106             android:layout_height="wrap_content"
107             android:layout_width="match_parent"
108             android:layout_marginTop="6dp"
109             android:layout_marginBottom="6dp"
110             android:layout_marginStart="4dp"
111             android:layout_marginEnd="4dp" >
112
113             <!-- `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`. -->
114             <com.google.android.material.textfield.TextInputEditText
115                 android:id="@+id/bookmark_name_edittext"
116                 android:layout_height="wrap_content"
117                 android:layout_width="match_parent"
118                 android:hint="@string/bookmark_name"
119                 android:imeOptions="actionGo"
120                 android:inputType="textUri"
121                 android:selectAllOnFocus="true" />
122             </com.google.android.material.textfield.TextInputLayout>
123
124         <!-- The `TextInputLayout` makes the `android:hint` float above the edit text. -->
125         <com.google.android.material.textfield.TextInputLayout
126             android:layout_height="wrap_content"
127             android:layout_width="match_parent"
128             android:layout_marginTop="6dp"
129             android:layout_marginBottom="12dp"
130             android:layout_marginStart="4dp"
131             android:layout_marginEnd="4dp" >
132
133             <!-- `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`. -->
134             <com.google.android.material.textfield.TextInputEditText
135                 android:id="@+id/bookmark_url_edittext"
136                 android:layout_height="wrap_content"
137                 android:layout_width="match_parent"
138                 android:hint="@string/bookmark_url"
139                 android:imeOptions="actionGo"
140                 android:inputType="textUri"
141                 android:selectAllOnFocus="true" />
142         </com.google.android.material.textfield.TextInputLayout>
143     </LinearLayout>
144 </ScrollView>