1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright 2016 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="actionGo"` sets the keyboard to have a `go` 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="actionGo"
41 android:inputType="text" />
44 android:id="@+id/find_previous"
45 android:src="@drawable/previous"
46 android:layout_width="35dp"
47 android:layout_height="35dp"
48 android:layout_marginStart="4dp"
49 android:layout_marginEnd="4dp"
50 android:layout_gravity="center_vertical"
51 android:contentDescription="@string/previous" />
54 android:id="@+id/find_next"
55 android:src="@drawable/next"
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:contentDescription="@string/next" />
64 android:id="@+id/close_find"
65 android:src="@drawable/close"
66 android:layout_width="35dp"
67 android:layout_height="35dp"
68 android:layout_marginStart="4dp"
69 android:layout_marginEnd="8dp"
70 android:layout_gravity="center_vertical"
71 android:contentDescription="@string/close"
72 android:onClick="closeFindOnPage" />