]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/create_bookmark_folder_dialog.xml
First wrong button text in View Headers in night theme. https://redmine.stoutner...
[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-2019, 2021-2024 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     android:layout_height="wrap_content"
24     android:layout_width="match_parent"
25     xmlns:tools="http://schemas.android.com/tools" >
26
27     <LinearLayout
28         android:layout_height="wrap_content"
29         android:layout_width="match_parent"
30         android:orientation="vertical" >
31
32         <!-- Default folder icon. -->
33         <LinearLayout
34             android:id="@+id/default_folder_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/default_folder_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/default_folder_icon_imageview"
50                 android:layout_height="30dp"
51                 android:layout_width="30dp"
52                 android:layout_gravity="center_vertical"
53                 android:src="@drawable/folder_blue_bitmap"
54                 tools:ignore="ContentDescription" />
55
56             <TextView
57                 android:layout_height="wrap_content"
58                 android:layout_width="wrap_content"
59                 android:layout_marginStart="7dp"
60                 android:layout_gravity="center_vertical"
61                 android:text="@string/default_folder_icon"
62                 android:textSize="18sp"
63                 android:textColor="?android:textColorPrimary" />
64         </LinearLayout>
65
66         <!-- Webpage favorite icon. -->
67         <LinearLayout
68             android:id="@+id/webpage_favorite_icon_linearlayout"
69             android:layout_height="wrap_content"
70             android:layout_width="match_parent"
71             android:orientation="horizontal"
72             android:layout_marginTop="6dp"
73             android:layout_marginBottom="6dp" >
74
75             <RadioButton
76                 android:id="@+id/webpage_favorite_icon_radiobutton"
77                 android:layout_width="wrap_content"
78                 android:layout_height="wrap_content"
79                 android:layout_gravity="center_vertical" />
80
81             <ImageView
82                 android:id="@+id/webpage_favorite_icon_imageview"
83                 android:layout_height="30dp"
84                 android:layout_width="30dp"
85                 android:layout_gravity="center_vertical"
86                 tools:ignore="ContentDescription" />
87
88             <TextView
89                 android:layout_height="wrap_content"
90                 android:layout_width="wrap_content"
91                 android:layout_marginStart="7dp"
92                 android:layout_gravity="center_vertical"
93                 android:text="@string/webpage_favorite_icon"
94                 android:textSize="18sp"
95                 android:textColor="?android:textColorPrimary" />
96         </LinearLayout>
97
98         <!-- Custom icon. -->
99         <LinearLayout
100             android:id="@+id/custom_icon_linearlayout"
101             android:layout_height="wrap_content"
102             android:layout_width="match_parent"
103             android:orientation="horizontal"
104             android:layout_marginTop="6dp" >
105
106             <RadioButton
107                 android:id="@+id/custom_icon_radiobutton"
108                 android:layout_height="wrap_content"
109                 android:layout_width="wrap_content"
110                 android:layout_gravity="center_vertical" />
111
112             <ImageView
113                 android:id="@+id/custom_icon_imageview"
114                 android:layout_width="30dp"
115                 android:layout_height="30dp"
116                 android:layout_gravity="center_vertical"
117                 tools:ignore="ContentDescription" />
118
119             <TextView
120                 android:layout_height="wrap_content"
121                 android:layout_width="wrap_content"
122                 android:layout_marginStart="7dp"
123                 android:layout_gravity="center_vertical"
124                 android:text="@string/custom_folder_icon"
125                 android:textSize="18sp"
126                 android:textColor="?android:textColorPrimary" />
127         </LinearLayout>
128
129         <!-- Browse button. -->
130         <Button
131             android:id="@+id/browse_button"
132             android:layout_height="wrap_content"
133             android:layout_width="wrap_content"
134             android:layout_gravity="center_horizontal"
135             android:text="@string/browse"
136             android:layout_marginBottom="12dp" />
137
138         <!-- The text input layout makes the `android:hint` float above the edit text. -->
139         <com.google.android.material.textfield.TextInputLayout
140             android:layout_height="wrap_content"
141             android:layout_width="match_parent"
142             android:layout_marginTop="6dp"
143             android:layout_marginStart="4dp"
144             android:layout_marginEnd="4dp" >
145
146             <!-- `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. -->
147             <com.google.android.material.textfield.TextInputEditText
148                 android:id="@+id/folder_name_edittext"
149                 android:layout_height="wrap_content"
150                 android:layout_width="match_parent"
151                 android:hint="@string/folder_name"
152                 android:imeOptions="actionGo"
153                 android:inputType="textUri" >
154                 <requestFocus />
155             </com.google.android.material.textfield.TextInputEditText>
156         </com.google.android.material.textfield.TextInputLayout>
157     </LinearLayout>
158 </ScrollView>