1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright © 2015-2019 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/>. -->
21 <!-- `RelativeLayout` is used instead of a `LinearLayout` because `supportAppBar` does not let `android:layout_weight="1"` cause `urlTextBox` to fill all the available space. -->
23 xmlns:android="http://schemas.android.com/apk/res/android"
24 xmlns:tools="http://schemas.android.com/tools"
25 android:layout_height="wrap_content"
26 android:layout_width="match_parent"
27 tools:context=".activities.ViewSourceActivity" >
30 android:id="@+id/back_arrow"
31 android:src="@drawable/back"
32 android:tint="?attr/viewSourceIconTintColor"
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" />
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`. -->
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" />