]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - res/layout/create_bookmark_folder_dialog.xml
Add an option to delete all domain settings at once. https://redmine.stoutner.com...
[PrivacyBrowserAndroid.git] / res / layout / create_bookmark_folder_dialog.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2016-2019,2021-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:tools="http://schemas.android.com/tools"
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
32         <!-- Default icon. -->
33         <LinearLayout
34             android:id="@+id/default_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" >
40
41             <RadioButton
42                 android:id="@+id/default_icon_radiobutton"
43                 android:layout_height="wrap_content"
44                 android:layout_width="wrap_content"
45                 android:layout_gravity="center_vertical"
46                 android:checked="true" />
47
48             <ImageView
49                 android:id="@+id/default_icon_imageview"
50                 android:layout_height="30dp"
51                 android:layout_width="30dp"
52                 android:layout_gravity="center_vertical"
53                 android:src="@drawable/folder_blue_bitmap"
54                 tools:ignore="ContentDescription" />
55
56             <TextView
57                 android:layout_height="wrap_content"
58                 android:layout_width="wrap_content"
59                 android:layout_marginStart="7dp"
60                 android:layout_gravity="center_vertical"
61                 android:text="@string/default_folder_icon"
62                 android:textSize="18sp"
63                 android:textColor="?android:textColorPrimary" />
64         </LinearLayout>
65
66         <!-- Webpage favorite icon. -->
67         <LinearLayout
68             android:id="@+id/webpage_favorite_icon_linearlayout"
69             android:layout_height="wrap_content"
70             android:layout_width="match_parent"
71             android:orientation="horizontal"
72             android:layout_marginTop="6dp"
73             android:layout_marginBottom="12dp" >
74
75             <RadioButton
76                 android:id="@+id/webpage_favorite_icon_radiobutton"
77                 android:layout_width="wrap_content"
78                 android:layout_height="wrap_content"
79                 android:layout_gravity="center_vertical" />
80
81             <ImageView
82                 android:id="@+id/webpage_favorite_icon_imageview"
83                 android:layout_height="30dp"
84                 android:layout_width="30dp"
85                 android:layout_gravity="center_vertical"
86                 tools:ignore="ContentDescription" />
87
88             <TextView
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/webpage_favorite_icon"
94                 android:textSize="18sp"
95                 android:textColor="?android:textColorPrimary" />
96         </LinearLayout>
97
98         <!-- The text input layout makes the `android:hint` float above the edit text. -->
99         <com.google.android.material.textfield.TextInputLayout
100             android:layout_height="wrap_content"
101             android:layout_width="match_parent"
102             android:layout_marginTop="6dp"
103             android:layout_marginStart="4dp"
104             android:layout_marginEnd="4dp" >
105
106             <!-- `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. -->
107             <com.google.android.material.textfield.TextInputEditText
108                 android:id="@+id/folder_name_edittext"
109                 android:layout_height="wrap_content"
110                 android:layout_width="match_parent"
111                 android:hint="@string/folder_name"
112                 android:imeOptions="actionGo"
113                 android:inputType="textUri" >
114                 <requestFocus />
115             </com.google.android.material.textfield.TextInputEditText>
116         </com.google.android.material.textfield.TextInputLayout>
117
118         <TextView
119             android:layout_height="wrap_content"
120             android:layout_width="match_parent"
121             android:gravity="center_horizontal"
122             android:text="@string/folder_names_must_be_unique"
123             android:layout_marginStart="7dp"
124             android:layout_marginEnd="7dp" />
125     </LinearLayout>
126 </ScrollView>