1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright 2019-2022, 2024 Soren Stoutner <soren@stoutner.com>.
6 This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android>.
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.
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.
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/>. -->
22 xmlns:android="http://schemas.android.com/apk/res/android"
23 android:layout_height="wrap_content"
24 android:layout_width="match_parent" >
27 android:layout_height="wrap_content"
28 android:layout_width="match_parent"
29 android:orientation="vertical"
30 android:layout_marginTop="10dp"
31 android:layout_marginStart="10dp"
32 android:layout_marginEnd="10dp" >
34 <!-- URL. The text input layout makes the `android:hint` float above the edit text. -->
35 <com.google.android.material.textfield.TextInputLayout
36 android:layout_height="wrap_content"
37 android:layout_width="match_parent" >
39 <!-- `android:inputType="TextUri"` disables spell check and places an `/` on the main keyboard. -->
40 <com.google.android.material.textfield.TextInputEditText
41 android:id="@+id/url_edittext"
42 android:layout_height="wrap_content"
43 android:layout_width="match_parent"
44 android:hint="@string/url"
45 android:inputType="textMultiLine|textUri" />
46 </com.google.android.material.textfield.TextInputLayout>
50 android:id="@+id/file_size_textview"
51 android:layout_height="wrap_content"
52 android:layout_width="wrap_content"
53 android:layout_marginEnd="3dp"
54 android:layout_marginBottom="5dp"
55 android:layout_gravity="end" />
57 <!-- Blob warning. It is initially visibility gone, but will be displayed as needed. -->
59 android:id="@+id/blob_url_warning_textview"
60 android:layout_height="wrap_content"
61 android:layout_width="wrap_content"
62 android:text="@string/blob_url_warning"
63 android:textColor="@color/red_text"
64 android:visibility="gone" />
66 <!-- Data warning. It is initially visibility gone, but will be displayed as needed. -->
68 android:id="@+id/data_url_warning_textview"
69 android:layout_height="wrap_content"
70 android:layout_width="wrap_content"
71 android:text="@string/data_url_warning"
72 android:textColor="@color/red_text"
73 android:visibility="gone" />
75 <!-- Android download manager views. They are initially visibility gone, but will be displayed as needed.-->
77 android:id="@+id/android_download_manager_linearlayout"
78 android:layout_height="wrap_content"
79 android:layout_width="match_parent"
80 android:layout_marginTop="10dp"
81 android:orientation="vertical"
82 android:visibility="gone" >
84 <!-- Download directory header. -->
86 android:layout_height="wrap_content"
87 android:layout_width="wrap_content"
88 android:layout_gravity="center"
89 android:text="@string/download_directory"
90 android:textSize="20sp"
91 android:textStyle="bold"
92 android:textColor="?android:textColorPrimary" />
94 <!-- Download directory radio group. -->
96 android:id="@+id/download_directory_radiogroup"
97 android:layout_height="wrap_content"
98 android:layout_width="match_parent"
99 android:layout_marginTop="5dp"
100 android:layout_gravity="center"
101 android:orientation="vertical" >
105 android:id="@+id/downloads_radiobutton"
106 android:layout_height="wrap_content"
107 android:layout_width="match_parent"
108 android:text="@string/downloads"
109 android:checked="true" />
113 android:id="@+id/documents_radiobutton"
114 android:layout_height="wrap_content"
115 android:layout_width="match_parent"
116 android:text="@string/documents" />
120 android:id="@+id/pictures_radiobutton"
121 android:layout_height="wrap_content"
122 android:layout_width="match_parent"
123 android:text="@string/pictures" />
127 android:id="@+id/music_radiobutton"
128 android:layout_height="wrap_content"
129 android:layout_width="match_parent"
130 android:text="@string/music" />
133 <!-- File Name. The text input layout makes the `android:hint` float above the edit text.-->
134 <com.google.android.material.textfield.TextInputLayout
135 android:layout_height="wrap_content"
136 android:layout_width="match_parent"
137 android:layout_marginTop="14dp" >
139 <!-- `android:inputType="TextUri"` disables spell check and places an `/` on the main keyboard. -->
140 <com.google.android.material.textfield.TextInputEditText
141 android:id="@+id/file_name_edittext"
142 android:layout_height="wrap_content"
143 android:layout_width="match_parent"
144 android:hint="@string/file_name"
145 android:inputType="textUri" />
146 </com.google.android.material.textfield.TextInputLayout>