1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright © 2016-2017,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 <!-- `LinearLayout` is initially `visibility="gone"` so the `url_app_bar` is visible. -->
23 xmlns:android="http://schemas.android.com/apk/res/android"
24 xmlns:tools="http://schemas.android.com/tools"
25 android:id="@+id/find_on_page_linearlayout"
26 android:layout_height="wrap_content"
27 android:layout_width="match_parent"
28 android:orientation="horizontal"
29 android:visibility="gone" >
31 <!-- `android:imeOptions="actionDone"` sets the keyboard to have a `check mark` key instead of a `new line` key. -->
33 android:id="@+id/find_on_page_edittext"
34 android:layout_height="wrap_content"
35 android:layout_width="0dp"
36 android:layout_weight="1"
37 android:layout_marginStart="8dp"
38 android:layout_marginEnd="4dp"
39 android:hint="@string/find_on_page"
41 android:imeOptions="actionDone"
42 android:inputType="text"
43 tools:ignore="Autofill" />
46 android:id="@+id/find_on_page_count_textview"
47 android:layout_height="wrap_content"
48 android:layout_width="wrap_content"
49 android:layout_marginStart="4dp"
50 android:layout_marginEnd="4dp"
51 android:text="@string/zero_of_zero" />
54 android:id="@+id/find_previous"
55 android:src="@drawable/previous"
56 android:layout_width="35dp"
57 android:layout_height="35dp"
58 android:layout_marginStart="4dp"
59 android:layout_marginEnd="4dp"
60 android:layout_gravity="center_vertical"
61 android:tint="?attr/findOnPageIconTintColor"
62 android:contentDescription="@string/previous"
63 android:onClick="findPreviousOnPage" />
66 android:id="@+id/find_next"
67 android:src="@drawable/next"
68 android:layout_width="35dp"
69 android:layout_height="35dp"
70 android:layout_marginStart="4dp"
71 android:layout_marginEnd="4dp"
72 android:layout_gravity="center_vertical"
73 android:tint="?attr/findOnPageIconTintColor"
74 android:contentDescription="@string/next"
75 android:onClick="findNextOnPage" />
78 android:id="@+id/close_find"
79 android:src="@drawable/close_light"
80 android:layout_width="35dp"
81 android:layout_height="35dp"
82 android:layout_marginStart="4dp"
83 android:layout_marginEnd="8dp"
84 android:layout_gravity="center_vertical"
85 android:tint="?attr/findOnPageIconTintColor"
86 android:contentDescription="@string/close"
87 android:onClick="closeFindOnPage" />