ztenghui | 0353ca2 | 2013-08-13 13:53:16 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2013 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | <menu xmlns:android="http://schemas.android.com/apk/res/android"> |
Mangesh Ghiware | 33035c1 | 2013-08-23 13:28:21 -0700 | [diff] [blame] | 18 | <!-- Ideally, showAsAction for share_panorama and share should be reversed. |
| 19 | But, if share_panorama is set to never, it doesn't seem to get promoted |
| 20 | to the action bar and stays on the overflow menu. --> |
Mangesh Ghiware | cd2eeb0 | 2013-08-23 13:28:21 -0700 | [diff] [blame] | 21 | <item android:id="@+id/action_share_panorama" |
Danny Baumann | d4d81ee | 2016-11-29 09:54:27 +0100 | [diff] [blame] | 22 | android:icon="@drawable/ic_menu_share" |
Mangesh Ghiware | cd2eeb0 | 2013-08-23 13:28:21 -0700 | [diff] [blame] | 23 | android:title="@string/share_panorama" |
| 24 | android:visible="false" |
| 25 | android:actionProviderClass="android.widget.ShareActionProvider" |
Mangesh Ghiware | 33035c1 | 2013-08-23 13:28:21 -0700 | [diff] [blame] | 26 | android:showAsAction="ifRoom" /> |
| 27 | <item android:id="@+id/action_share" |
Danny Baumann | d4d81ee | 2016-11-29 09:54:27 +0100 | [diff] [blame] | 28 | android:icon="@drawable/ic_menu_share" |
Mangesh Ghiware | 33035c1 | 2013-08-23 13:28:21 -0700 | [diff] [blame] | 29 | android:title="@string/share" |
| 30 | android:visible="false" |
| 31 | android:actionProviderClass="android.widget.ShareActionProvider" |
Mangesh Ghiware | cd2eeb0 | 2013-08-23 13:28:21 -0700 | [diff] [blame] | 32 | android:showAsAction="never" /> |
ztenghui | 0353ca2 | 2013-08-13 13:53:16 -0700 | [diff] [blame] | 33 | <item android:id="@+id/action_delete" |
Danny Baumann | d4d81ee | 2016-11-29 09:54:27 +0100 | [diff] [blame] | 34 | android:icon="@drawable/ic_menu_delete" |
ztenghui | 0353ca2 | 2013-08-13 13:53:16 -0700 | [diff] [blame] | 35 | android:title="@string/delete" |
| 36 | android:visible="false" |
ztenghui | 8c72b25 | 2013-10-02 13:31:35 -0700 | [diff] [blame] | 37 | android:showAsAction="ifRoom" /> |
ztenghui | 0353ca2 | 2013-08-13 13:53:16 -0700 | [diff] [blame] | 38 | <item android:id="@+id/action_edit" |
| 39 | android:title="@string/edit" |
| 40 | android:showAsAction="never" |
| 41 | android:visible="false" /> |
| 42 | <item android:id="@+id/action_trim" |
| 43 | android:title="@string/trim_action" |
| 44 | android:showAsAction="never" |
| 45 | android:visible="false" /> |
ztenghui | 0353ca2 | 2013-08-13 13:53:16 -0700 | [diff] [blame] | 46 | <item android:id="@+id/action_rotate_ccw" |
| 47 | android:showAsAction="never" |
| 48 | android:visible="false" |
| 49 | android:title="@string/rotate_left" /> |
| 50 | <item android:id="@+id/action_rotate_cw" |
| 51 | android:showAsAction="never" |
| 52 | android:visible="false" |
| 53 | android:title="@string/rotate_right" /> |
| 54 | <item android:id="@+id/action_crop" |
| 55 | android:title="@string/crop_action" |
| 56 | android:showAsAction="never" |
| 57 | android:visible="false" /> |
| 58 | <item android:id="@+id/action_setas" |
| 59 | android:title="@string/set_image" |
| 60 | android:showAsAction="never" |
| 61 | android:visible="false" /> |
| 62 | <item android:id="@+id/action_details" |
| 63 | android:icon="@drawable/ic_menu_info_details" |
| 64 | android:title="@string/details" |
| 65 | android:visible="false" |
| 66 | android:showAsAction="never" /> |
| 67 | <item android:id="@+id/action_show_on_map" |
| 68 | android:title="@string/show_on_map" |
| 69 | android:showAsAction="never" |
| 70 | android:visible="false" /> |
| 71 | </menu> |