Combine drawable files. https://redmine.stoutner.com/issues/794
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / edit_bookmark_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_width="30dp"
51                 android:layout_height="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_bookmark_icon"
61                 android:textSize="18sp"
62                 android:textColor="?android:textColorPrimary" />
63         </LinearLayout>
64
65         <!-- Webpage favorite icon. -->
66         <LinearLayout
67             android:id="@+id/webpage_favorite_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/webpage_favorite_icon_radiobutton"
76                 android:layout_height="wrap_content"
77                 android:layout_width="wrap_content"
78                 android:layout_gravity="center_vertical" />
79
80             <ImageView
81                 android:id="@+id/webpage_favorite_icon_imageview"
82                 android:layout_height="30dp"
83                 android:layout_width="30dp"
84                 android:layout_gravity="center_vertical"
85                 tools:ignore="ContentDescription" />
86
87             <TextView
88                 android:layout_height="wrap_content"
89                 android:layout_width="wrap_content"
90                 android:layout_marginStart="7dp"
91                 android:layout_gravity="center_vertical"
92                 android:text="@string/webpage_favorite_icon"
93                 android:textSize="18sp"
94                 android:textColor="?android:textColorPrimary" />
95         </LinearLayout>
96
97         <!-- The text input layout makes the `android:hint` float above the edit text. -->
98         <com.google.android.material.textfield.TextInputLayout
99             android:layout_height="wrap_content"
100             android:layout_width="match_parent"
101             android:layout_marginTop="12dp"
102             android:layout_marginBottom="6dp"
103             android:layout_marginStart="4dp"
104             android:layout_marginEnd="4dp" >
105
106             <!-- `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. -->
107             <com.google.android.material.textfield.TextInputEditText
108                 android:id="@+id/bookmark_name_edittext"
109                 android:layout_height="wrap_content"
110                 android:layout_width="match_parent"
111                 android:hint="@string/bookmark_name"
112                 android:imeOptions="actionGo"
113                 android:inputType="textUri"
114                 android:selectAllOnFocus="true" />
115         </com.google.android.material.textfield.TextInputLayout>
116
117         <!-- The text input layout makes the `android:hint` float above the edit text. -->
118         <com.google.android.material.textfield.TextInputLayout
119             android:layout_height="wrap_content"
120             android:layout_width="match_parent"
121             android:layout_marginTop="6dp"
122             android:layout_marginBottom="12dp"
123             android:layout_marginStart="4dp"
124             android:layout_marginEnd="4dp" >
125
126             <!-- `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. -->
127             <com.google.android.material.textfield.TextInputEditText
128                 android:id="@+id/bookmark_url_edittext"
129                 android:layout_height="wrap_content"
130                 android:layout_width="match_parent"
131                 android:hint="@string/bookmark_url"
132                 android:imeOptions="actionGo"
133                 android:inputType="textUri"
134                 android:selectAllOnFocus="true" />
135         </com.google.android.material.textfield.TextInputLayout>
136     </LinearLayout>
137 </ScrollView>