1.概述
在10.0的系统产品开发中,在Launcher3开发中,由于要默认一些设置 不让用户修改,这时候就需要 去掉长按弹窗功能了,workspace.java的长按处理事件就是 WorkspaceTouchListene.java
2.Launcher3 去掉workspace长按弹出壁纸弹窗的核心类
packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
packages/apps/Launcher3/src/com/android/launcher3/touch/WorkspaceTouchListener.java
3.Launcher3 去掉workspace长按弹出壁纸弹窗的核心功能分析和实现
在Launcher3中,对于每个屏幕绑定数据都是在workspace.java 负责处理的,长按事件也可以从这里分析相关的源码
3.1workspace.java 源码关于长按事件的处理
/**
* The workspace is a wide area with a wallpaper and a finite number of pages.
* Each page contains a number of icons, folders or widgets the user can
* interact with. A workspace is meant to be used with a fixed width only.
*/
public class Work
|