]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/find_on_page_app_bar.xml
Add option to stop loading the WebView. https://redmine.stoutner.com/issues/252
[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 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     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" >
29
30     <!-- `android:imeOptions="actionDone"` sets the keyboard to have a `check mark` key instead of a `new line` key. -->
31     <EditText
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"
39         android:lines="1"
40         android:imeOptions="actionDone"
41         android:inputType="text" />
42
43     <TextView
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"
50         />
51
52     <ImageView
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:tint="?attr/findOnPageIconTintColor"
61         android:contentDescription="@string/previous"
62         android:onClick="findPreviousOnPage" />
63
64     <ImageView
65         android:id="@+id/find_next"
66         android:src="@drawable/next"
67         android:layout_width="35dp"
68         android:layout_height="35dp"
69         android:layout_marginStart="4dp"
70         android:layout_marginEnd="4dp"
71         android:layout_gravity="center_vertical"
72         android:tint="?attr/findOnPageIconTintColor"
73         android:contentDescription="@string/next"
74         android:onClick="findNextOnPage" />
75
76     <ImageView
77         android:id="@+id/close_find"
78         android:src="@drawable/close_light"
79         android:layout_width="35dp"
80         android:layout_height="35dp"
81         android:layout_marginStart="4dp"
82         android:layout_marginEnd="8dp"
83         android:layout_gravity="center_vertical"
84         android:tint="?attr/findOnPageIconTintColor"
85         android:contentDescription="@string/close"
86         android:onClick="closeFindOnPage" />
87 </LinearLayout>