diff options
author | Owen Lin <owenlin@google.com> | 2011-08-17 22:07:43 +0800 |
---|---|---|
committer | Owen Lin <owenlin@google.com> | 2011-08-18 13:33:50 +0800 |
commit | a85c80227a56f3b7f917464096cd33877093616f (patch) | |
tree | 79a46705c0fed9ac4bb66d94f905134b5a8bbdcb /res/menu | |
parent | a053a3179cfee3d2bb666eff5f4f03a96b092e04 (diff) | |
download | android_packages_apps_Snap-a85c80227a56f3b7f917464096cd33877093616f.tar.gz android_packages_apps_Snap-a85c80227a56f3b7f917464096cd33877093616f.tar.bz2 android_packages_apps_Snap-a85c80227a56f3b7f917464096cd33877093616f.zip |
Initial code for Gallery2.
fix: 5176434
Change-Id: I041e282b9c7b34ceb1db8b033be2b853bb3a992c
Diffstat (limited to 'res/menu')
-rw-r--r-- | res/menu/album.xml | 27 | ||||
-rw-r--r-- | res/menu/albumset.xml | 33 | ||||
-rw-r--r-- | res/menu/crop.xml | 27 | ||||
-rw-r--r-- | res/menu/filterby.xml | 23 | ||||
-rw-r--r-- | res/menu/groupby.xml | 29 | ||||
-rw-r--r-- | res/menu/operation.xml | 67 | ||||
-rw-r--r-- | res/menu/photo.xml | 70 | ||||
-rw-r--r-- | res/menu/pickup.xml | 21 | ||||
-rw-r--r-- | res/menu/selection.xml | 18 | ||||
-rw-r--r-- | res/menu/settings.xml | 21 |
10 files changed, 336 insertions, 0 deletions
diff --git a/res/menu/album.xml b/res/menu/album.xml new file mode 100644 index 000000000..1e1f6ef1e --- /dev/null +++ b/res/menu/album.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/action_slideshow" + android:icon="@drawable/ic_menu_slideshow_holo_light" + android:title="@string/slideshow" + android:showAsAction="ifRoom" /> + <item android:id="@+id/action_select" + android:title="@string/select_item" + android:showAsAction="never" /> + <item android:id="@+id/action_group_by" + android:title="@string/group_by" + android:showAsAction="never"/> +</menu> diff --git a/res/menu/albumset.xml b/res/menu/albumset.xml new file mode 100644 index 000000000..3bb46f7d1 --- /dev/null +++ b/res/menu/albumset.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/action_camera" + android:icon="@drawable/ic_menu_camera_holo_light" + android:title="@string/switch_to_camera" + android:showAsAction="ifRoom" /> + <item android:id="@+id/action_select" + android:title="@string/select_album" + android:showAsAction="never" /> + <item android:id="@+id/action_manage_offline" + android:title="@string/make_available_offline" + android:showAsAction="never" /> + <item android:id="@+id/action_sync_picasa_albums" + android:title="@string/sync_picasa_albums" + android:showAsAction="never" /> + <item android:id="@+id/action_settings" + android:title="@string/settings" + android:showAsAction="never" /> +</menu> diff --git a/res/menu/crop.xml b/res/menu/crop.xml new file mode 100644 index 000000000..addd26ff4 --- /dev/null +++ b/res/menu/crop.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/save" + android:icon="@drawable/ic_menu_save_holo_light" + android:title="@string/crop_save_text" + android:showAsAction="always|withText"> + </item> + <item android:id="@+id/cancel" + android:icon="@drawable/ic_menu_cancel_holo_light" + android:title="@android:string/cancel" + android:showAsAction="always"> + </item> +</menu> diff --git a/res/menu/filterby.xml b/res/menu/filterby.xml new file mode 100644 index 000000000..3a72c57b2 --- /dev/null +++ b/res/menu/filterby.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/action_filter_all" + android:title="@string/show_all" /> + <item android:id="@+id/action_filter_image" + android:title="@string/show_images_only" /> + <item android:id="@+id/action_filter_video" + android:title="@string/show_videos_only" /> +</menu> diff --git a/res/menu/groupby.xml b/res/menu/groupby.xml new file mode 100644 index 000000000..b2c2b8d59 --- /dev/null +++ b/res/menu/groupby.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/action_cluster_album" + android:title="@string/group_by_album" /> + <item android:id="@+id/action_cluster_time" + android:title="@string/group_by_time" /> + <item android:id="@+id/action_cluster_location" + android:title="@string/group_by_location" /> + <item android:id="@+id/action_cluster_tags" + android:title="@string/group_by_tags" /> + <item android:id="@+id/action_cluster_size" + android:title="@string/group_by_size" /> + <item android:id="@+id/action_cluster_faces" + android:title="@string/group_by_faces" /> +</menu> diff --git a/res/menu/operation.xml b/res/menu/operation.xml new file mode 100644 index 000000000..334b33400 --- /dev/null +++ b/res/menu/operation.xml @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/action_import" + android:title="@string/Import" + android:icon="@drawable/ic_menu_ptp_holo_light" + android:showAsAction="always|withText" + android:visible="false" /> + <item android:id="@+id/action_share" + android:icon="@drawable/ic_menu_share_holo_light" + android:title="@string/share" + android:actionProviderClass="android.widget.ShareActionProvider" + android:showAsAction="ifRoom"> + </item> + <item android:id="@+id/action_delete" + android:icon="@drawable/ic_menu_trash_holo_light" + android:title="@string/delete" + android:showAsAction="ifRoom"> + <menu> + <item android:id="@+id/action_confirm_delete" + android:icon="@drawable/ic_menu_trash_holo_light" + android:title="@string/confirm_delete" /> + <item android:id="@+id/action_cancel_delete" + android:icon="@drawable/ic_menu_cancel_holo_light" + android:title="@string/cancel" /> + </menu> + </item> + <item android:id="@+id/action_show_on_map" + android:title="@string/show_on_map" + android:showAsAction="never" + android:visible="false" /> + <item android:id="@+id/action_rotate_ccw" + android:showAsAction="never" + android:title="@string/rotate_left" /> + <item android:id="@+id/action_rotate_cw" + android:showAsAction="never" + android:title="@string/rotate_right" /> + <item android:id="@+id/action_setas" + android:title="@string/set_image" + android:showAsAction="never" + android:visible="false" /> + <item android:id="@+id/action_crop" + android:title="@string/crop" + android:showAsAction="never" + android:visible="false" /> + <item android:id="@+id/action_details" + android:icon="@drawable/ic_menu_info_details" + android:title="@string/details" + android:showAsAction="never" /> + <item android:id="@+id/action_edit" + android:title="@string/edit" + android:showAsAction="never" + android:visible="false" /> +</menu> diff --git a/res/menu/photo.xml b/res/menu/photo.xml new file mode 100644 index 000000000..d01ba2859 --- /dev/null +++ b/res/menu/photo.xml @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/action_share" + android:icon="@drawable/ic_menu_share_holo_light" + android:title="@string/share" + android:enabled="true" + android:actionProviderClass="android.widget.ShareActionProvider" + android:showAsAction="always"> + <!-- We need this to create a dynamic list of submenu --> + <menu /> + </item> + <item android:id="@+id/action_delete" + android:icon="@drawable/ic_menu_trash_holo_light" + android:title="@string/delete" + android:showAsAction="always"> + <menu> + <item android:id="@+id/action_confirm_delete" + android:icon="@drawable/ic_menu_trash_holo_light" + android:title="@string/confirm_delete" /> + <item android:id="@+id/action_cancel_delete" + android:icon="@drawable/ic_menu_cancel_holo_light" + android:title="@string/cancel" /> + </menu> + </item> + <item android:id="@+id/action_slideshow" + android:icon="@drawable/ic_menu_slideshow_holo_light" + android:title="@string/slideshow" + android:showAsAction="always" /> + <item android:id="@+id/action_import" + android:title="@string/Import" + android:icon="@drawable/ic_menu_ptp_holo_light" + android:showAsAction="always|withText" + android:visible="false" /> + <item android:id="@+id/action_details" + android:title="@string/details" + android:showAsAction="never" /> + <item android:id="@+id/action_show_on_map" + android:title="@string/show_on_map" + android:showAsAction="never" /> + <item android:id="@+id/action_rotate_ccw" + android:showAsAction="never" + android:title="@string/rotate_left" /> + <item android:id="@+id/action_rotate_cw" + android:showAsAction="never" + android:title="@string/rotate_right" /> + <item android:id="@+id/action_setas" + android:title="@string/set_image" + android:showAsAction="never" /> + <item android:id="@+id/action_crop" + android:title="@string/crop" + android:showAsAction="never" /> + <item android:id="@+id/action_edit" + android:title="@string/edit" + android:showAsAction="never" + android:visible="false" /> +</menu> diff --git a/res/menu/pickup.xml b/res/menu/pickup.xml new file mode 100644 index 000000000..f22bc6dbe --- /dev/null +++ b/res/menu/pickup.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/action_cancel" + android:icon="@drawable/ic_menu_cancel_holo_light" + android:title="@string/cancel" + android:showAsAction="always|withText" /> +</menu> diff --git a/res/menu/selection.xml b/res/menu/selection.xml new file mode 100644 index 000000000..18839e4d2 --- /dev/null +++ b/res/menu/selection.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/action_select_all" android:title="@string/select_all" /> +</menu> diff --git a/res/menu/settings.xml b/res/menu/settings.xml new file mode 100644 index 000000000..f91f1bac7 --- /dev/null +++ b/res/menu/settings.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/add_account" + android:title="@string/add_account" + android:showAsAction="always|withText"> + </item> +</menu> |