1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright 2016 Soren Stoutner <soren@stoutner.com>.
6 This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
8 Privacy Browser 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 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. 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"
26 android:orientation="vertical" >
28 <!-- The icon selection rows. -->
30 android:layout_height="wrap_content"
31 android:layout_width="match_parent"
32 android:orientation="horizontal">
34 <!-- The column displaying the icons. -->
36 android:layout_height="wrap_content"
37 android:layout_width="wrap_content"
38 android:orientation="vertical" >
41 android:id="@+id/create_folder_default_icon"
42 android:layout_height="30dp"
43 android:layout_width="30dp"
44 android:layout_marginTop="12dp"
45 android:layout_marginBottom="6dp"
46 android:layout_marginStart="8dp"
47 android:layout_marginEnd="8dp"
48 android:layout_gravity="center_vertical"
49 android:src="@drawable/folder_blue_bitmap"
50 tools:ignore="ContentDescription" />
53 android:id="@+id/create_folder_web_page_icon"
54 android:layout_height="30dp"
55 android:layout_width="30dp"
56 android:layout_marginTop="6dp"
57 android:layout_marginBottom="6dp"
58 android:layout_marginStart="8dp"
59 android:layout_marginEnd="8dp"
60 android:layout_gravity="center_vertical"
61 tools:ignore="ContentDescription" />
64 <!-- The column with the `RadioGroup`. -->
66 android:id="@+id/create_folder_radiogroup"
67 android:layout_width="match_parent"
68 android:layout_height="wrap_content"
69 android:checkedButton="@+id/create_folder_default_icon_radiobuttion">
72 android:id="@id/create_folder_default_icon_radiobuttion"
73 android:layout_width="wrap_content"
74 android:layout_height="wrap_content"
75 android:layout_marginTop="12dp"
76 android:layout_marginBottom="9dp"
77 android:text="@string/default_folder_icon"
78 android:textSize="18sp" />
81 android:id="@+id/create_folder_web_page_icon_radiobuttion"
82 android:layout_width="wrap_content"
83 android:layout_height="wrap_content"
84 android:text="@string/web_page_favorite_icon"
85 android:textSize="18sp" />
89 <!-- `android.support.design.widget.TextInputLayout` makes the `android:hint` float above the `EditText`. -->
90 <android.support.design.widget.TextInputLayout
91 android:layout_height="wrap_content"
92 android:layout_width="match_parent"
93 android:layout_marginTop="6dp"
94 android:layout_marginStart="4dp"
95 android:layout_marginEnd="4dp" >
97 <!-- `android:imeOptions="actionGo"` sets the keyboard to have a "go" key instead of a "new line" key.
98 `android:inputType="textUri"` disables spell check in the EditText. -->
99 <android.support.design.widget.TextInputEditText
100 android:id="@+id/create_folder_name_edittext"
101 android:layout_height="wrap_content"
102 android:layout_width="match_parent"
103 android:hint="@string/folder_name"
104 android:imeOptions="actionGo"
105 android:inputType="textUri" />
106 </android.support.design.widget.TextInputLayout>
109 android:layout_height="wrap_content"
110 android:layout_width="match_parent"
111 android:gravity="center_horizontal"
112 android:text="@string/folder_names_must_be_unique" />