1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright 2016-2017, 2019-2022, 2024 Soren Stoutner <soren@stoutner.com>.
6 This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android>.
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.
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.
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/>. -->
22 xmlns:android="http://schemas.android.com/apk/res/android"
23 xmlns:tools="http://schemas.android.com/tools"
24 android:layout_height="wrap_content"
25 android:layout_width="match_parent" >
28 android:layout_height="wrap_content"
29 android:layout_width="match_parent"
30 android:orientation="vertical" >
32 <!-- Current icon. -->
34 android:id="@+id/current_icon_linearlayout"
35 android:layout_height="wrap_content"
36 android:layout_width="match_parent"
37 android:orientation="horizontal"
38 android:layout_marginTop="12dp"
39 android:layout_marginBottom="6dp" >
42 android:id="@+id/current_icon_radiobutton"
43 android:layout_height="wrap_content"
44 android:layout_width="wrap_content"
45 android:layout_gravity="center_vertical"
46 android:checked="true" />
49 android:id="@+id/current_icon_imageview"
50 android:layout_width="30dp"
51 android:layout_height="30dp"
52 android:layout_gravity="center_vertical"
53 tools:ignore="ContentDescription" />
56 android:layout_height="wrap_content"
57 android:layout_width="wrap_content"
58 android:layout_marginStart="7dp"
59 android:layout_gravity="center_vertical"
60 android:text="@string/current_bookmark_icon"
61 android:textSize="18sp"
62 android:textColor="?android:textColorPrimary" />
65 <!-- Webpage favorite icon. -->
67 android:id="@+id/webpage_favorite_icon_linearlayout"
68 android:layout_height="wrap_content"
69 android:layout_width="match_parent"
70 android:orientation="horizontal"
71 android:layout_marginTop="6dp"
72 android:layout_marginBottom="6dp" >
75 android:id="@+id/webpage_favorite_icon_radiobutton"
76 android:layout_height="wrap_content"
77 android:layout_width="wrap_content"
78 android:layout_gravity="center_vertical" />
81 android:id="@+id/webpage_favorite_icon_imageview"
82 android:layout_height="30dp"
83 android:layout_width="30dp"
84 android:layout_gravity="center_vertical"
85 tools:ignore="ContentDescription" />
88 android:layout_height="wrap_content"
89 android:layout_width="wrap_content"
90 android:layout_marginStart="7dp"
91 android:layout_gravity="center_vertical"
92 android:text="@string/webpage_favorite_icon"
93 android:textSize="18sp"
94 android:textColor="?android:textColorPrimary" />
99 android:id="@+id/custom_icon_linearlayout"
100 android:layout_height="wrap_content"
101 android:layout_width="match_parent"
102 android:orientation="horizontal"
103 android:layout_marginTop="6dp" >
106 android:id="@+id/custom_icon_radiobutton"
107 android:layout_height="wrap_content"
108 android:layout_width="wrap_content"
109 android:layout_gravity="center_vertical" />
112 android:id="@+id/custom_icon_imageview"
113 android:layout_width="30dp"
114 android:layout_height="30dp"
115 android:layout_gravity="center_vertical"
116 tools:ignore="ContentDescription" />
119 android:layout_height="wrap_content"
120 android:layout_width="wrap_content"
121 android:layout_marginStart="7dp"
122 android:layout_gravity="center_vertical"
123 android:text="@string/custom_bookmark_icon"
124 android:textSize="18sp"
125 android:textColor="?android:textColorPrimary" />
128 <!-- Browse button. -->
130 android:id="@+id/browse_button"
131 android:layout_height="wrap_content"
132 android:layout_width="wrap_content"
133 android:layout_gravity="center_horizontal"
134 android:text="@string/browse"
135 android:layout_marginBottom="12dp" />
137 <!-- The text input layout makes the `android:hint` float above the edit text. -->
138 <com.google.android.material.textfield.TextInputLayout
139 android:layout_height="wrap_content"
140 android:layout_width="match_parent"
141 android:layout_marginTop="6dp"
142 android:layout_marginBottom="6dp"
143 android:layout_marginStart="4dp"
144 android:layout_marginEnd="4dp" >
146 <!-- `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 edit text. -->
147 <com.google.android.material.textfield.TextInputEditText
148 android:id="@+id/bookmark_name_edittext"
149 android:layout_height="wrap_content"
150 android:layout_width="match_parent"
151 android:hint="@string/bookmark_name"
152 android:imeOptions="actionGo"
153 android:inputType="textUri"
154 android:selectAllOnFocus="true" />
155 </com.google.android.material.textfield.TextInputLayout>
157 <!-- The text input layout makes the `android:hint` float above the edit text. -->
158 <com.google.android.material.textfield.TextInputLayout
159 android:layout_height="wrap_content"
160 android:layout_width="match_parent"
161 android:layout_marginTop="6dp"
162 android:layout_marginBottom="12dp"
163 android:layout_marginStart="4dp"
164 android:layout_marginEnd="4dp" >
166 <!-- `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 edit text. -->
167 <com.google.android.material.textfield.TextInputEditText
168 android:id="@+id/bookmark_url_edittext"
169 android:layout_height="wrap_content"
170 android:layout_width="match_parent"
171 android:hint="@string/bookmark_url"
172 android:imeOptions="actionGo"
173 android:inputType="textUri"
174 android:selectAllOnFocus="true" />
175 </com.google.android.material.textfield.TextInputLayout>