]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/create_bookmark_folder_dialog.xml
Release 1.9.1.
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / create_bookmark_folder_dialog.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright 2016 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
7
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.
12
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.
17
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/>. -->
20
21 <LinearLayout
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" >
27
28     <!-- The icon selection rows. -->
29     <LinearLayout
30         android:layout_height="wrap_content"
31         android:layout_width="match_parent"
32         android:orientation="horizontal">
33
34         <!-- The column displaying the icons. -->
35         <LinearLayout
36             android:layout_height="wrap_content"
37             android:layout_width="wrap_content"
38             android:orientation="vertical" >
39
40             <ImageView
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" />
51
52             <ImageView
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" />
62         </LinearLayout>
63
64         <!-- The column with the `RadioGroup`. -->
65         <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">
70
71             <RadioButton
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" />
79
80             <RadioButton
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" />
86         </RadioGroup>
87     </LinearLayout>
88
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" >
96
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>
107
108     <TextView
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" />
113 </LinearLayout>