1.概述
在12.0的系统产品开发中,对于在Launcher3中的抽屉模式中,系统默认的就是抽屉单层模式,但是在很多产品中需要默认为单层模式,就是要求去掉双层抽屉模式,接下来看下如何继续实现去掉抽屉双层模式,来变成单层模式第四节
2.Launcher3去掉抽屉模式 双层改成单层系列四的核心类
packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/PortraitStatesTouchController.java
packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsTransitionController.java
3.Launcher3去掉抽屉模式 双层改成单层系列四的核心功能分析和实现
3.1 AllAppsTransitionController.java关于去掉上滑显示app动画的相关代码分析
public class AllAppsTransitionController
implements StateHandler<LauncherState>, OnDeviceProfileChangeListener {
// This constant should match the second derivative of the animator interpolator.
public static final float INTERP_COEFF = 1.7f;
private static final float CONTENT_VISIBLE_MAX_THRESHOLD = 0.5f;
public static final FloatProperty&l