]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/menu/menu_webview.xml
Add a menu item to toggle JavaScript.
[PrivacyBrowserAndroid.git] / app / src / main / res / menu / menu_webview.xml
1 <!--
2   Copyright 2015 Soren Stoutner <soren@stoutner.com>.
3
4   This file is part of Privacy Browser <https://privacybrowser.stoutner.com/>.
5
6   Privacy Browser is free software: you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation, either version 3 of the License, or
9   (at your option) any later version.
10
11   Privacy Browser is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   GNU General Public License for more details.
15
16   You should have received a copy of the GNU General Public License
17   along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>. -->
18
19 <menu
20     xmlns:android="http://schemas.android.com/apk/res/android"
21     xmlns:app="http://schemas.android.com/apk/res-auto"
22     xmlns:tools="http://schemas.android.com/tools"
23     tools:context=".Webview">
24
25     <item
26         android:id="@+id/toggleJavaScript"
27         android:title="@string/javaScript"
28         android:orderInCategory="1"
29         android:checkable="true"
30         app:showAsAction="never" />
31
32     <item
33         android:id="@+id/home"
34         android:title="@string/home"
35         android:orderInCategory="2"
36         android:icon="@drawable/ic_home_black_24dp"
37         app:showAsAction="never" />
38
39     <item
40         android:id="@+id/refresh"
41         android:title="@string/refresh"
42         android:orderInCategory="3"
43         app:showAsAction="never" />
44
45     <item
46         android:id="@+id/back"
47         android:title="@string/back"
48         android:orderInCategory="4"
49         android:icon="@drawable/ic_back"
50         app:showAsAction="never" />
51
52     <item
53         android:id="@+id/forward"
54         android:title="@string/forward"
55         android:orderInCategory="5"
56         android:icon="@drawable/ic_forward"
57         app:showAsAction="never" />
58
59     <!-- tools:targetApi="11" is required because copy and paste was not available on earlier version of Android. -->
60     <item
61         android:id="@+id/copyURL"
62         android:title="@string/copy_URL"
63         android:orderInCategory="6"
64         tools:targetApi="11"
65         app:showAsAction="never" />
66
67     <!-- tools:targetApi="11" is required because copy and paste was not available on earlier version of Android. -->
68     <item
69         android:id="@+id/pasteURL"
70         android:title="@string/paste_URL"
71         android:orderInCategory="7"
72         tools:targetApi="11"
73         app:showAsAction="never" />
74
75     <item
76         android:id="@+id/shareURL"
77         android:title="@string/share_URL"
78         android:orderInCategory="8"
79         app:showAsAction="never" />
80
81     <item
82         android:id="@+id/addToHomescreen"
83         android:title="@string/add_to_home_screen"
84         android:orderInCategory="9"
85         app:showAsAction="never" />
86
87     <item
88         android:id="@+id/downloads"
89         android:title="@string/downloads"
90         android:orderInCategory="10"
91         app:showAsAction="never" />
92
93     <item
94         android:id="@+id/about"
95         android:title="@string/about"
96         android:orderInCategory="11"
97         app:showAsAction="never" />
98 </menu>