]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/edit_bookmark_folder_dialog.xml
Release 1.9.1.
[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 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             android:layout_marginStart="16dp"
40             android:layout_marginEnd="10dp" >
41
42             <ImageView
43                 android:id="@+id/edit_folder_current_icon"
44                 android:layout_height="30dp"
45                 android:layout_width="30dp"
46                 android:layout_marginTop="12dp"
47                 android:layout_marginBottom="6dp"
48                 android:layout_gravity="center_vertical"
49                 tools:ignore="ContentDescription" />
50
51             <ImageView
52                 android:id="@+id/edit_folder_default_icon"
53                 android:layout_height="30dp"
54                 android:layout_width="30dp"
55                 android:layout_marginTop="6dp"
56                 android:layout_marginBottom="6dp"
57                 android:layout_gravity="center_vertical"
58                 android:src="@drawable/folder_blue_bitmap"
59                 tools:ignore="ContentDescription" />
60
61             <ImageView
62                 android:id="@+id/edit_folder_web_page_favorite_icon"
63                 android:layout_height="30dp"
64                 android:layout_width="30dp"
65                 android:layout_marginTop="6dp"
66                 android:layout_marginBottom="12dp"
67                 android:layout_gravity="center_vertical"
68                 tools:ignore="ContentDescription" />
69         </LinearLayout>
70
71         <!-- The column with the `RadioGroup`. -->
72         <RadioGroup
73             android:layout_width="match_parent"
74             android:layout_height="wrap_content"
75             android:checkedButton="@+id/edit_folder_current_icon_radiobutton">
76
77             <RadioButton
78                 android:id="@id/edit_folder_current_icon_radiobutton"
79                 android:layout_height="wrap_content"
80                 android:layout_width="wrap_content"
81                 android:layout_marginTop="12dp"
82                 android:layout_marginBottom="4dp"
83                 android:text="@string/current_folder_icon"
84                 android:textSize="18sp"/>
85
86             <RadioButton
87                 android:id="@+id/edit_folder_default_icon_radiobutton"
88                 android:layout_width="wrap_content"
89                 android:layout_height="wrap_content"
90                 android:layout_marginTop="5dp"
91                 android:layout_marginBottom="4dp"
92                 android:text="@string/default_folder_icon"
93                 android:textSize="18sp" />
94
95             <RadioButton
96                 android:id="@+id/edit_folder_web_page_icon_radiobutton"
97                 android:layout_width="wrap_content"
98                 android:layout_height="wrap_content"
99                 android:layout_marginTop="5dp"
100                 android:text="@string/web_page_favorite_icon"
101                 android:textSize="18sp" />
102         </RadioGroup>
103     </LinearLayout>
104
105     <!-- `android.support.design.widget.TextInputLayout` makes the `android:hint` float above the `EditText`. -->
106     <android.support.design.widget.TextInputLayout
107         android:layout_height="wrap_content"
108         android:layout_width="match_parent"
109         android:layout_marginTop="6dp"
110         android:layout_marginBottom="12dp"
111         android:layout_marginStart="4dp"
112         android:layout_marginEnd="4dp" >
113
114         <!-- `android:imeOptions="actionGo"` sets the keyboard to have a "go" key instead of a "new line" key.
115             `android:inputType="textUri"` disables spell check in the EditText. -->
116         <android.support.design.widget.TextInputEditText
117             android:id="@+id/edit_folder_name_edittext"
118             android:layout_height="wrap_content"
119             android:layout_width="match_parent"
120             android:hint="@string/folder_name"
121             android:imeOptions="actionGo"
122             android:inputType="textUri" />
123     </android.support.design.widget.TextInputLayout>
124
125     <TextView
126         android:layout_height="wrap_content"
127         android:layout_width="match_parent"
128         android:gravity="center_horizontal"
129         android:text="@string/folder_names_must_be_unique" />
130 </LinearLayout>