Owen Lin | a85c802 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2010 Google Inc. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | <menu xmlns:android="http://schemas.android.com/apk/res/android"> |
Ray Chen | bc4be6e | 2011-08-19 11:00:00 +0800 | [diff] [blame] | 17 | <item android:id="@+id/action_import" |
| 18 | android:title="@string/Import" |
| 19 | android:icon="@drawable/ic_menu_ptp_holo_light" |
| 20 | android:showAsAction="always|withText" |
| 21 | android:visible="false" /> |
Mangesh Ghiware | 2f589c8 | 2012-09-27 21:05:41 -0700 | [diff] [blame] | 22 | <!-- Ideally, showAsAction for share_panorama and share should be reversed. |
| 23 | But, if share_panorama is set to never, it doesn't seem to get promoted |
| 24 | to the action bar and stays on the overflow menu. --> |
| 25 | <item android:id="@+id/action_share_panorama" |
Owen Lin | a85c802 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 26 | android:icon="@drawable/ic_menu_share_holo_light" |
Mangesh Ghiware | 2f589c8 | 2012-09-27 21:05:41 -0700 | [diff] [blame] | 27 | android:title="@string/share_panorama" |
Evan Millar | 78b8b37 | 2011-10-03 11:31:19 -0700 | [diff] [blame] | 28 | android:visible="false" |
Owen Lin | a57d8fe | 2012-08-24 12:25:57 +0800 | [diff] [blame] | 29 | android:actionProviderClass="com.actionbarsherlock.widget.ShareActionProvider" |
Ray Chen | bc4be6e | 2011-08-19 11:00:00 +0800 | [diff] [blame] | 30 | android:showAsAction="ifRoom" /> |
Mangesh Ghiware | 2f589c8 | 2012-09-27 21:05:41 -0700 | [diff] [blame] | 31 | <item android:id="@+id/action_share" |
| 32 | android:icon="@drawable/ic_menu_share_holo_light" |
| 33 | android:title="@string/share" |
| 34 | android:visible="false" |
| 35 | android:actionProviderClass="com.actionbarsherlock.widget.ShareActionProvider" |
| 36 | android:showAsAction="never" /> |
Bobby Georgescu | 4ee977a | 2012-09-06 17:14:02 -0700 | [diff] [blame] | 37 | <item android:id="@+id/action_grid" |
| 38 | android:icon="@android:drawable/ic_dialog_dialer" |
| 39 | android:title="@string/switch_photo_grid" |
| 40 | android:showAsAction="ifRoom" /> |
Owen Lin | a85c802 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 41 | <item android:id="@+id/action_delete" |
| 42 | android:icon="@drawable/ic_menu_trash_holo_light" |
| 43 | android:title="@string/delete" |
Evan Millar | 78b8b37 | 2011-10-03 11:31:19 -0700 | [diff] [blame] | 44 | android:visible="false" |
Wu-cheng Li | 66ad9ba | 2012-04-30 15:02:56 +0800 | [diff] [blame] | 45 | android:showAsAction="ifRoom" /> |
Owen Lin | a85c802 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 46 | <item android:id="@+id/action_slideshow" |
| 47 | android:icon="@drawable/ic_menu_slideshow_holo_light" |
| 48 | android:title="@string/slideshow" |
Ray Chen | bc4be6e | 2011-08-19 11:00:00 +0800 | [diff] [blame] | 49 | android:showAsAction="never" /> |
Ray Chen | 2612ce8 | 2011-10-19 14:37:02 +0800 | [diff] [blame] | 50 | <item android:id="@+id/action_edit" |
| 51 | android:title="@string/edit" |
| 52 | android:showAsAction="never" |
| 53 | android:visible="false" /> |
Owen Lin | a85c802 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 54 | <item android:id="@+id/action_rotate_ccw" |
| 55 | android:showAsAction="never" |
| 56 | android:title="@string/rotate_left" /> |
| 57 | <item android:id="@+id/action_rotate_cw" |
| 58 | android:showAsAction="never" |
| 59 | android:title="@string/rotate_right" /> |
Owen Lin | a85c802 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 60 | <item android:id="@+id/action_crop" |
Yuli Huang | 9004bba | 2011-09-09 17:09:39 +0800 | [diff] [blame] | 61 | android:title="@string/crop_action" |
Owen Lin | a85c802 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 62 | android:showAsAction="never" /> |
Teng-Hui Zhu | 0d9061b | 2012-08-23 16:45:11 -0700 | [diff] [blame] | 63 | <item android:id="@+id/action_trim" |
| 64 | android:title="@string/trim_action" |
| 65 | android:showAsAction="never" /> |
Ray Chen | 2612ce8 | 2011-10-19 14:37:02 +0800 | [diff] [blame] | 66 | <item android:id="@+id/action_setas" |
| 67 | android:title="@string/set_image" |
| 68 | android:showAsAction="never" /> |
Wu-cheng Li | 66ad9ba | 2012-04-30 15:02:56 +0800 | [diff] [blame] | 69 | <item android:id="@+id/action_details" |
| 70 | android:title="@string/details" |
| 71 | android:showAsAction="never" /> |
Ray Chen | 2612ce8 | 2011-10-19 14:37:02 +0800 | [diff] [blame] | 72 | <item android:id="@+id/action_show_on_map" |
| 73 | android:title="@string/show_on_map" |
| 74 | android:showAsAction="never" /> |
Owen Lin | a85c802 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 75 | </menu> |