Add swipe to refresh to domain and on-the-fly settings. https://redmine.stoutner...
[PrivacyBrowser.git] / app / src / main / res / menu / webview_options_menu.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2015-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 <menu
22     xmlns:android="http://schemas.android.com/apk/res/android"
23     xmlns:app="http://schemas.android.com/apk/res-auto"
24     xmlns:tools="http://schemas.android.com/tools"
25     tools:context=".activities.MainWebViewActivity" >
26
27     <item
28         android:id="@+id/toggle_javascript"
29         android:title="@string/javascript"
30         android:orderInCategory="100"
31         app:showAsAction="ifRoom" />
32
33     <item
34         android:id="@+id/add_or_edit_domain"
35         android:title="@string/add_domain_settings"
36         android:orderInCategory="200"
37         app:showAsAction="never" />
38
39     <item
40         android:id="@+id/toggle_first_party_cookies"
41         android:title="@string/first_party_cookies"
42         android:orderInCategory="300"
43         android:checkable="true"
44         app:showAsAction="never" />
45
46     <item
47         android:id="@+id/toggle_third_party_cookies"
48         android:title="@string/third_party_cookies"
49         android:orderInCategory="400"
50         android:checkable="true"
51         app:showAsAction="never" />
52
53     <item
54         android:id="@+id/toggle_dom_storage"
55         android:title="@string/dom_storage"
56         android:orderInCategory="500"
57         android:checkable="true"
58         app:showAsAction="never" />
59
60     <item
61         android:id="@+id/toggle_save_form_data"
62         android:title="@string/form_data"
63         android:orderInCategory="600"
64         android:checkable="true"
65         app:showAsAction="never" />
66
67     <item
68         android:id="@+id/clear_data"
69         android:title="@string/clear_data"
70         android:orderInCategory="700"
71         app:showAsAction="never" >
72
73         <menu>
74             <item
75                 android:id="@+id/clear_cookies"
76                 android:title="@string/clear_cookies"
77                 android:orderInCategory="710"
78                 app:showAsAction="never" />
79
80             <item
81                 android:id="@+id/clear_dom_storage"
82                 android:title="@string/clear_dom_storage"
83                 android:orderInCategory="720"
84                 app:showAsAction="never" />
85
86             <item
87                 android:id="@+id/clear_form_data"
88                 android:title="@string/clear_form_data"
89                 android:orderInCategory="730"
90                 app:showAsAction="never" />
91         </menu>
92     </item>
93
94     <item
95         android:id="@+id/layout"
96         android:title="@string/layout"
97         android:orderInCategory="800"
98         app:showAsAction="never" >
99
100         <menu>
101             <item
102                 android:id="@+id/font_size"
103                 android:title="@string/font_size"
104                 android:orderInCategory="810"
105                 app:showAsAction="never" >
106
107                 <menu>
108                     <group android:checkableBehavior="single">
109                         <item
110                             android:id="@+id/font_size_twenty_five_percent"
111                             android:title="@string/twenty_five_percent"
112                             android:orderInCategory="811"
113                             app:showAsAction="never" />
114
115                         <item
116                             android:id="@+id/font_size_fifty_percent"
117                             android:title="@string/fifty_percent"
118                             android:orderInCategory="812"
119                             app:showAsAction="never" />
120
121                         <item
122                             android:id="@+id/font_size_seventy_five_percent"
123                             android:title="@string/seventy_five_percent"
124                             android:orderInCategory="813"
125                             app:showAsAction="never" />
126
127                         <item
128                             android:id="@+id/font_size_one_hundred_percent"
129                             android:title="@string/one_hundred_percent"
130                             android:orderInCategory="814"
131                             app:showAsAction="never" />
132
133                         <item
134                             android:id="@+id/font_size_one_hundred_twenty_five_percent"
135                             android:title="@string/one_hundred_twenty_five_percent"
136                             android:orderInCategory="815"
137                             app:showAsAction="never" />
138
139                         <item
140                             android:id="@+id/font_size_one_hundred_fifty_percent"
141                             android:title="@string/one_hundred_fifty_percent"
142                             android:orderInCategory="816"
143                             app:showAsAction="never" />
144
145                         <item
146                             android:id="@+id/font_size_one_hundred_seventy_five_percent"
147                             android:title="@string/one_hundred_seventy_five_percent"
148                             android:orderInCategory="817"
149                             app:showAsAction="never" />
150
151                         <item
152                             android:id="@+id/font_size_two_hundred_percent"
153                             android:title="@string/two_hundred_percent"
154                             android:orderInCategory="818"
155                             app:showAsAction="never" />
156                     </group>
157                 </menu>
158             </item>
159
160             <item
161                 android:id="@+id/swipe_to_refresh"
162                 android:title="@string/swipe_to_refresh_options_menu"
163                 android:orderInCategory="820"
164                 android:checkable="true"
165                 app:showAsAction="never" />
166
167             <item
168                 android:id="@+id/display_images"
169                 android:title="@string/display_images"
170                 android:orderInCategory="830"
171                 android:checkable="true"
172                 app:showAsAction="never" />
173
174             <item
175                 android:id="@+id/view_source"
176                 android:title="@string/view_source"
177                 android:orderInCategory="840"
178                 app:showAsAction="never" />
179         </menu>
180     </item>
181
182     <item
183         android:id="@+id/share"
184         android:title="@string/share"
185         android:orderInCategory="900"
186         app:showAsAction="never" />
187
188     <item
189         android:id="@+id/find_on_page"
190         android:title="@string/find_on_page"
191         android:orderInCategory="1000"
192         app:showAsAction="never|collapseActionView" />
193     <item
194         android:id="@+id/print"
195         android:title="@string/print"
196         android:orderInCategory="1100"
197         app:showAsAction="never" />
198
199     <item
200         android:id="@+id/add_to_homescreen"
201         android:title="@string/add_to_home_screen"
202         android:orderInCategory="1200"
203         app:showAsAction="never" />
204
205     <item
206         android:id="@+id/refresh"
207         android:title="@string/refresh"
208         android:orderInCategory="1300"
209         app:showAsAction="never" />
210
211     <item
212         android:id="@+id/ad_consent"
213         android:title="@string/ad_consent"
214         android:orderInCategory="1400"
215         app:showAsAction="never" />
216 </menu>