]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/view_source_appbar_custom_view.xml
Update the URL in the copyright header. https://redmine.stoutner.com/issues/796
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / view_source_appbar_custom_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2015-2020,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 <!-- Relative layout is used instead of a linear layout because `supportAppBar` does not let `android:layout_weight="1"` cause the URL text box to fill all the available space. -->
22 <RelativeLayout
23     xmlns:android="http://schemas.android.com/apk/res/android"
24     xmlns:app="http://schemas.android.com/apk/res-auto"
25     xmlns:tools="http://schemas.android.com/tools"
26     android:layout_height="wrap_content"
27     android:layout_width="match_parent" >
28
29     <ImageView
30         android:id="@+id/back_arrow"
31         android:src="@drawable/back"
32         app:tint="?attr/colorControlNormal"
33         android:layout_height="wrap_content"
34         android:layout_width="wrap_content"
35         android:layout_centerVertical="true"
36         android:layout_marginEnd="14dp"
37         android:contentDescription="@string/back"
38         android:onClick="goBack" />
39
40     <!-- `android:imeOptions="actionGo"` sets the keyboard to have a `go` key instead of a `new line` key.
41         `android:inputType="textUri"` disables spell check in the `EditText`. -->
42     <EditText
43         android:id="@+id/url_edittext"
44         android:layout_height="wrap_content"
45         android:layout_width="match_parent"
46         android:layout_toEndOf="@id/back_arrow"
47         android:hint="@string/url"
48         android:imeOptions="actionGo"
49         android:inputType="textUri"
50         android:selectAllOnFocus="true"
51         tools:ignore="Autofill" />
52 </RelativeLayout>