Android 9.0 Launcher3 removes the double-layer drawer mode and changes it to a single-layer series three

1 Overview

   In the 9.0 system rom product customization development, the system defaults to the sliding drawer mode in Launcher3, and the product requirements require modification to a single-layer mode, and the first and second parts have been modified in the previous two articles, continue Next, we will continue to modify Launcher3 to remove the drawer mode, and modify the double layer to single layer. The third lecture of the series

2. Launcher3 removes the drawer mode and double-layer and changes it to the core class of single-layer Series 3

    packages/apps/Launcher3/src/com/android/launcher3/DeleteDropTarget.java
    packages/apps/Launcher3/src/com/android/launcher3/dragndrop/DragController.java

3. Analysis and implementation of the core function of Launcher3 to remove the double-layer drawer mode and change it to a single-layer series
  3. 3.1 Relevant modifications on the DeleteDropTarget.java page about changing from deleting to canceling

       public class DeleteDropTarget extends ButtonDropTarget {
      
          private int mControlType = ControlType.DEFAULT_CONTROLTYPE;
      
          public DeleteDropTarget(Context context, AttributeSet attrs) {
              this(context, attrs, 0);
          }
      
          public DeleteDropTarget(Context context, AttributeSet attrs, int defStyle) {
              super(context, attrs, defStyle);
          }
      
          @Override
       

Guess you like

Origin blog.csdn.net/baidu_41666295/article/details/130548051