Combine drawable files. https://redmine.stoutner.com/issues/794
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / edit_bookmark_folder_dialog.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2016-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: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         <!-- Current icon. -->
33         <LinearLayout
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" >
40
41             <RadioButton
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" />
47
48             <ImageView
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" />
54
55             <TextView
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" />
63         </LinearLayout>
64
65         <!-- Default icon. -->
66         <LinearLayout
67             android:id="@+id/default_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" >
73
74             <RadioButton
75                 android:id="@+id/default_icon_radiobutton"
76                 android:layout_width="wrap_content"
77                 android:layout_height="wrap_content"
78                 android:layout_gravity="center_vertical" />
79
80             <ImageView
81                 android:id="@+id/default_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" />
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/default_folder_icon"
94                 android:textSize="18sp"
95                 android:textColor="?android:textColorPrimary" />
96         </LinearLayout>
97
98         <!-- Webpage favorite icon. -->
99         <LinearLayout
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" >
106
107             <RadioButton
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" />
112
113             <ImageView
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" />
119
120             <TextView
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" />
128         </LinearLayout>
129
130         <!-- The text input layout makes the `android:hint` float above the edit text. -->
131         <com.google.android.material.textfield.TextInputLayout
132             android:layout_height="wrap_content"
133             android:layout_width="match_parent"
134             android:layout_marginTop="12dp"
135             android:layout_marginStart="4dp"
136             android:layout_marginEnd="4dp" >
137
138             <!-- `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. -->
139             <com.google.android.material.textfield.TextInputEditText
140                 android:id="@+id/folder_name_edittext"
141                 android:layout_height="wrap_content"
142                 android:layout_width="match_parent"
143                 android:hint="@string/folder_name"
144                 android:imeOptions="actionGo"
145                 android:inputType="textUri"
146                 android:selectAllOnFocus="true" />
147         </com.google.android.material.textfield.TextInputLayout>
148
149         <TextView
150             android:layout_height="wrap_content"
151             android:layout_width="match_parent"
152             android:gravity="center_horizontal"
153             android:text="@string/folder_names_must_be_unique"
154             android:layout_marginStart="7dp"
155             android:layout_marginEnd="7dp" />
156     </LinearLayout>
157 </ScrollView>