Gallery2添加删除图标
来源:互联网 发布:网络主播排行榜2016 编辑:程序博客网 时间:2024/05/06 22:04
在图片展示界面的右上角添加一个删除的图标,并交换删除图标和分享图标的位置:
niming@ubuntu:/home/user/workspace2/niming/a750/android/packages/apps/Gallery2$ git diff res/menu/photo.xmldiff --git a/res/menu/photo.xml b/res/menu/photo.xmlold mode 100644new mode 100755index 569272e..6b3affd--- a/res/menu/photo.xml+++ b/res/menu/photo.xml@@ -22,6 +22,12 @@ <!-- Ideally, showAsAction for share_panorama and share should be reversed. But, if share_panorama is set to never, it doesn't seem to get promoted to the action bar and stays on the overflow menu. -->+ <item android:id="@+id/action_delete"+ android:icon="@drawable/ic_menu_trash_holo_light"+ android:title="@string/delete"+ android:visible="false"+ android:showAsAction="ifRoom" />+ <item android:id="@+id/action_share_panorama" android:icon="@drawable/ic_menu_share_holo_light" android:title="@string/share_panorama"@@ -34,11 +40,7 @@ android:visible="false" android:actionProviderClass="android.widget.ShareActionProvider" android:showAsAction="never" />- <item android:id="@+id/action_delete"- android:icon="@drawable/ic_menu_trash_holo_light"- android:title="@string/delete"- android:visible="false"- android:showAsAction="never" />+ <item android:id="@+id/action_slideshow" android:icon="@drawable/ic_menu_slideshow_holo_light" android:title="@string/slideshow"
0 0
- Gallery2添加删除图标
- 图标应用程序--添加、删除、保存图标
- 添加、删除桌面快捷图标
- gallery2
- 添加和删除显示任务栏图标示例
- ubuntu10.04面板删除后添加网络管理器图标
- vs2010 添加删除工具栏资源的上图标按钮
- 删除图标
- C# DevExpress中 GridControl某列添加小图标(删除图标为例)
- VC下添加和删除自己系统托盘图标,及托盘事件的响应
- VC下添加和删除系统托盘图标,及托盘事件的响应
- VC下添加和删除系统托盘图标,处理响应事件(Shell_NotifyIcon)
- Windows 7删除任务栏Shell_NotifyIcon添加过的垃圾图标显示配置信息
- SQLite数据库储存图片信息,GridView显示,基本实现添加、删除图标操作 ... ...
- android 如何添加 桌面图标 和 卸载程序后如何删除图标
- android 如何添加 桌面图标 和 卸载程序后如何删除图标(二)
- SHGetSpecialFolderPath及ShellExecute添加及删除任务栏图标路径或开始菜单
- 删除模拟器安装图标
- poj3268-Silver Cow Party
- 前端冷知识集锦
- UMDF 概述
- UVA 1644 - Prime Gap
- C中#line的用法
- Gallery2添加删除图标
- 顶撞老板需要实力,新员工戒之
- 怎样增加、删除、合并PDF文件中的页面?
- hdu 4941 Magical Forest(Map)
- Jdom解析源码
- Android的架构
- leetcode Best Time to Buy and Sell Stock
- hdu 1394 Minimum Inversion Number(线段树)
- frag iOS design a method