Android 9.0 Launcher3去掉抽屉模式 双层改成单层系列四

1.概述

   在9.0的系统产品开发中,在Launcher3中系统默认是上滑抽屉模式,而产品需求要求修改为单层模式,而在前面两篇文章中已经修改了第一部分第二部分第三部分,接下来要继续修改Launcher3去掉抽屉模式,修改双层为单层系列的第四讲

2.Launcher3去掉抽屉模式 双层改成单层系列四的核心类

    packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/PortraitStatesTouchController.java
    packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsTransitionController.java

3.Launcher3去掉抽屉模式 双层改成单层系列四的核心功能分析和实现
  3.1 AllAppsTransitionController.java关于去掉上滑显示app动画的相关代码分析

    public class AllAppsTransitionController implements StateHandler, OnDeviceProfileChangeListener {
      
          private static final float SPRING_DAMPING_RATIO = 0.9f;
          private static final float SPRING_STIFFNESS = 600f;
      
          public static final FloatProperty<AllAppsTransitionController> ALL_APPS_PROGRESS =
                  new FloatProperty<AllAppsTransi

猜你喜欢

转载自blog.csdn.net/baidu_41666295/article/details/130565142