1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright 2016-2017, 2019-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_height="30dp"
51 android:layout_width="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_folder_icon"
61 android:textSize="18sp"
62 android:textColor="?android:textColorPrimary" />
65 <!-- Default folder icon. -->
67 android:id="@+id/default_folder_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/default_folder_icon_radiobutton"
76 android:layout_width="wrap_content"
77 android:layout_height="wrap_content"
78 android:layout_gravity="center_vertical" />
81 android:id="@+id/default_folder_icon_imageview"
82 android:layout_height="30dp"
83 android:layout_width="30dp"
84 android:layout_gravity="center_vertical"
85 android:src="@drawable/folder_blue_bitmap"
86 tools:ignore="ContentDescription" />
89 android:layout_height="wrap_content"
90 android:layout_width="wrap_content"
91 android:layout_marginStart="7dp"
92 android:layout_gravity="center_vertical"
93 android:text="@string/default_folder_icon"
94 android:textSize="18sp"
95 android:textColor="?android:textColorPrimary" />
98 <!-- Webpage favorite icon. -->
100 android:id="@+id/webpage_favorite_icon_linearlayout"
101 android:layout_height="wrap_content"
102 android:layout_width="match_parent"
103 android:orientation="horizontal"
104 android:layout_marginTop="6dp"
105 android:layout_marginBottom="6dp" >
108 android:id="@+id/webpage_favorite_icon_radiobutton"
109 android:layout_height="wrap_content"
110 android:layout_width="wrap_content"
111 android:layout_gravity="center_vertical" />
114 android:id="@+id/webpage_favorite_icon_imageview"
115 android:layout_height="30dp"
116 android:layout_width="30dp"
117 android:layout_gravity="center_vertical"
118 tools:ignore="ContentDescription" />
121 android:layout_height="wrap_content"
122 android:layout_width="wrap_content"
123 android:layout_marginStart="7dp"
124 android:layout_gravity="center_vertical"
125 android:text="@string/webpage_favorite_icon"
126 android:textSize="18sp"
127 android:textColor="?android:textColorPrimary" />
130 <!-- Custom icon. -->
132 android:id="@+id/custom_icon_linearlayout"
133 android:layout_height="wrap_content"
134 android:layout_width="match_parent"
135 android:orientation="horizontal"
136 android:layout_marginTop="6dp" >
139 android:id="@+id/custom_icon_radiobutton"
140 android:layout_height="wrap_content"
141 android:layout_width="wrap_content"
142 android:layout_gravity="center_vertical" />
145 android:id="@+id/custom_icon_imageview"
146 android:layout_width="30dp"
147 android:layout_height="30dp"
148 android:layout_gravity="center_vertical"
149 tools:ignore="ContentDescription" />
152 android:layout_height="wrap_content"
153 android:layout_width="wrap_content"
154 android:layout_marginStart="7dp"
155 android:layout_gravity="center_vertical"
156 android:text="@string/custom_folder_icon"
157 android:textSize="18sp"
158 android:textColor="?android:textColorPrimary" />
161 <!-- Browse button. -->
163 android:id="@+id/browse_button"
164 android:layout_height="wrap_content"
165 android:layout_width="wrap_content"
166 android:layout_gravity="center_horizontal"
167 android:text="@string/browse"
168 android:layout_marginBottom="12dp" />
170 <!-- The text input layout makes the `android:hint` float above the edit text. -->
171 <com.google.android.material.textfield.TextInputLayout
172 android:layout_height="wrap_content"
173 android:layout_width="match_parent"
174 android:layout_marginTop="6dp"
175 android:layout_marginStart="4dp"
176 android:layout_marginEnd="4dp" >
178 <!-- `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. -->
179 <com.google.android.material.textfield.TextInputEditText
180 android:id="@+id/folder_name_edittext"
181 android:layout_height="wrap_content"
182 android:layout_width="match_parent"
183 android:hint="@string/folder_name"
184 android:imeOptions="actionGo"
185 android:inputType="textUri"
186 android:selectAllOnFocus="true" />
187 </com.google.android.material.textfield.TextInputLayout>