]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/menu/menu_webview.xml
Set toggleJavaScript MenuItem as showAsAction="always". Update AboutDialog to close...
[PrivacyBrowserAndroid.git] / app / src / main / res / menu / menu_webview.xml
1 <!--
2   Copyright 2015-2016 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=".MainWebView">
24
25     <item
26         android:id="@+id/toggleJavaScript"
27         android:title="@string/javascript"
28         android:orderInCategory="1"
29         app:showAsAction="always" />
30
31     <item
32         android:id="@+id/toggleDomStorage"
33         android:title="@string/dom_storage"
34         android:orderInCategory="2"
35         android:checkable="true"
36         app:showAsAction="never" />
37
38     <!-- toggleSaveFormData does nothing until database storage is implemented
39     <item
40         android:id="@+id/toggleSaveFormData"
41         android:title="@string/saveFormData"
42         android:orderInCategory="3"
43         android:checkable="true"
44         app:showAsAction="never" />
45         -->
46
47     <item
48         android:id="@+id/toggleCookies"
49         android:title="@string/cookies"
50         android:orderInCategory="4"
51         android:checkable="true"
52         app:showAsAction="never" />
53
54     <item
55         android:id="@+id/clearDomStorage"
56         android:title="@string/clear_dom_storage"
57         android:orderInCategory="5"
58         app:showAsAction="never" />
59
60     <item
61         android:id="@+id/clearCookies"
62         android:title="@string/clear_cookies"
63         android:orderInCategory="6"
64         app:showAsAction="never" />
65
66     <item
67         android:id="@+id/home"
68         android:title="@string/home"
69         android:orderInCategory="10"
70         app:showAsAction="never" />
71
72     <item
73         android:id="@+id/refresh"
74         android:title="@string/refresh"
75         android:orderInCategory="20"
76         app:showAsAction="never" />
77
78     <item
79         android:id="@+id/back"
80         android:title="@string/back"
81         android:orderInCategory="30"
82         app:showAsAction="never" />
83
84     <item
85         android:id="@+id/forward"
86         android:title="@string/forward"
87         android:orderInCategory="40"
88         app:showAsAction="never" />
89
90     <!-- tools:targetApi="11" is required because copy and paste was not available on earlier version of Android. -->
91     <item
92         android:id="@+id/copyURL"
93         android:title="@string/copy_url"
94         android:orderInCategory="50"
95         tools:targetApi="11"
96         app:showAsAction="never" />
97
98     <!-- tools:targetApi="11" is required because copy and paste was not available on earlier version of Android. -->
99     <item
100         android:id="@+id/pasteURL"
101         android:title="@string/paste_url"
102         android:orderInCategory="60"
103         tools:targetApi="11"
104         app:showAsAction="never" />
105
106     <item
107         android:id="@+id/shareURL"
108         android:title="@string/share_url"
109         android:orderInCategory="70"
110         app:showAsAction="never" />
111
112     <item
113         android:id="@+id/addToHomescreen"
114         android:title="@string/add_to_home_screen"
115         android:orderInCategory="80"
116         app:showAsAction="never" />
117
118     <item
119         android:id="@+id/downloads"
120         android:title="@string/downloads"
121         android:orderInCategory="90"
122         app:showAsAction="never" />
123
124     <item
125         android:id="@+id/about"
126         android:title="@string/about"
127         android:orderInCategory="100"
128         app:showAsAction="never" />
129
130     <item
131         android:id="@+id/clearAndExit"
132         android:title="@string/clear_and_exit"
133         android:orderInCategory="110"
134         app:showAsAction="never" />
135 </menu>