]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/find_on_page_app_bar.xml
8b2a510ebaa56d472c628f0501a1e8594074dff6
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / find_on_page_app_bar.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2016-2017,2019 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
7
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.
12
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.
17
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/>. -->
20
21 <!-- `LinearLayout` is initially `visibility="gone"` so the `url_app_bar` is visible. -->
22 <LinearLayout
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" >
30
31     <!-- `android:imeOptions="actionDone"` sets the keyboard to have a `check mark` key instead of a `new line` key. -->
32     <EditText
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"
40         android:lines="1"
41         android:imeOptions="actionDone"
42         android:inputType="text"
43         tools:ignore="Autofill" />
44
45     <TextView
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" />
52
53     <ImageView
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" />
64
65     <ImageView
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" />
76
77     <ImageView
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" />
88 </LinearLayout>