1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright © 2016-2017 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 android:id="@+id/find_on_page_linearlayout"
25 android:layout_height="wrap_content"
26 android:layout_width="match_parent"
27 android:orientation="horizontal"
28 android:visibility="gone" >
30 <!-- `android:imeOptions="actionDone"` sets the keyboard to have a `check mark` key instead of a `new line` key. -->
32 android:id="@+id/find_on_page_edittext"
33 android:layout_height="wrap_content"
34 android:layout_width="0dp"
35 android:layout_weight="1"
36 android:layout_marginStart="8dp"
37 android:layout_marginEnd="4dp"
38 android:hint="@string/find_on_page"
40 android:imeOptions="actionDone"
41 android:inputType="text" />
44 android:id="@+id/find_on_page_count_textview"
45 android:layout_height="wrap_content"
46 android:layout_width="wrap_content"
47 android:layout_marginStart="4dp"
48 android:layout_marginEnd="4dp"
49 android:text="@string/zero_of_zero"
53 android:id="@+id/find_previous"
54 android:src="@drawable/previous"
55 android:layout_width="35dp"
56 android:layout_height="35dp"
57 android:layout_marginStart="4dp"
58 android:layout_marginEnd="4dp"
59 android:layout_gravity="center_vertical"
60 android:contentDescription="@string/previous"
61 android:onClick="findPreviousOnPage"/>
64 android:id="@+id/find_next"
65 android:src="@drawable/next"
66 android:layout_width="35dp"
67 android:layout_height="35dp"
68 android:layout_marginStart="4dp"
69 android:layout_marginEnd="4dp"
70 android:layout_gravity="center_vertical"
71 android:contentDescription="@string/next"
72 android:onClick="findNextOnPage"/>
75 android:id="@+id/close_find"
76 android:src="@drawable/close"
77 android:layout_width="35dp"
78 android:layout_height="35dp"
79 android:layout_marginStart="4dp"
80 android:layout_marginEnd="8dp"
81 android:layout_gravity="center_vertical"
82 android:contentDescription="@string/close"
83 android:onClick="closeFindOnPage" />