1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright © 2016-2017 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 android:layout_height="wrap_content"
24 android:layout_width="match_parent" >
27 xmlns:tools="http://schemas.android.com/tools"
28 android:layout_height="wrap_content"
29 android:layout_width="match_parent"
30 android:orientation="vertical" >
32 <!-- The icon selection rows. -->
34 android:layout_height="wrap_content"
35 android:layout_width="match_parent"
36 android:orientation="horizontal" >
38 <!-- The column displaying the icons. -->
40 android:layout_height="wrap_content"
41 android:layout_width="wrap_content"
42 android:layout_marginStart="16dp"
43 android:layout_marginEnd="10dp"
44 android:orientation="vertical" >
47 android:id="@+id/edit_bookmark_current_icon"
48 android:layout_width="30dp"
49 android:layout_height="30dp"
50 android:layout_marginTop="12dp"
51 android:layout_marginBottom="6dp"
52 android:layout_gravity="center_vertical"
53 tools:ignore="ContentDescription" />
56 android:id="@+id/edit_bookmark_webpage_favorite_icon"
57 android:layout_width="30dp"
58 android:layout_height="30dp"
59 android:layout_marginTop="6dp"
60 android:layout_marginBottom="6dp"
61 tools:ignore="ContentDescription" />
64 <!-- The column with the `RadioGroup`. -->
66 android:id="@+id/edit_bookmark_icon_radiogroup"
67 android:layout_height="wrap_content"
68 android:layout_width="match_parent"
69 android:checkedButton="@+id/edit_bookmark_current_icon_radiobutton" >
72 android:id="@id/edit_bookmark_current_icon_radiobutton"
73 android:layout_height="wrap_content"
74 android:layout_width="wrap_content"
75 android:layout_marginTop="12dp"
76 android:layout_marginBottom="4dp"
77 android:text="@string/current_bookmark_icon"
78 android:textSize="18sp" />
81 android:id="@+id/edit_bookmark_webpage_favorite_icon_radiobutton"
82 android:layout_height="wrap_content"
83 android:layout_width="wrap_content"
84 android:layout_marginTop="5dp"
85 android:text="@string/web_page_favorite_icon"
86 android:textSize="18sp" />
90 <!-- `android.support.design.widget.TextInputLayout` makes the `android:hint` float above the `EditText`. -->
91 <android.support.design.widget.TextInputLayout
92 android:layout_height="wrap_content"
93 android:layout_width="match_parent"
94 android:layout_marginTop="12dp"
95 android:layout_marginBottom="6dp"
96 android:layout_marginStart="4dp"
97 android:layout_marginEnd="4dp" >
99 <!-- `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`. -->
100 <android.support.design.widget.TextInputEditText
101 android:id="@+id/edit_bookmark_name_edittext"
102 android:layout_height="wrap_content"
103 android:layout_width="match_parent"
104 android:hint="@string/bookmark_name"
105 android:imeOptions="actionGo"
106 android:inputType="textUri"
107 android:selectAllOnFocus="true" />
108 </android.support.design.widget.TextInputLayout>
110 <!-- `android.support.design.widget.TextInputLayout` makes the `android:hint` float above the `EditText`. -->
111 <android.support.design.widget.TextInputLayout
112 android:layout_height="wrap_content"
113 android:layout_width="match_parent"
114 android:layout_marginTop="6dp"
115 android:layout_marginBottom="12dp"
116 android:layout_marginStart="4dp"
117 android:layout_marginEnd="4dp" >
119 <!-- `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`. -->
121 android:id="@+id/edit_bookmark_url_edittext"
122 android:layout_height="wrap_content"
123 android:layout_width="match_parent"
124 android:hint="@string/bookmark_url"
125 android:imeOptions="actionGo"
126 android:inputType="textUri"
127 android:selectAllOnFocus="true" />
128 </android.support.design.widget.TextInputLayout>