Android 13.0 Launcher3 customized double-layer to single-layer (remove drawer 2)

1 Overview

  In the system product development of 13.0, the drawer mode in Launcher3 is also the double-layer mode. In the native Launcher3 of the system, it is the double-layer drawer mode, but the app list page is pulled out by sliding up the drawer mode, but
in In some product development, the product mode of Launcher3 in single-layer mode is also a common function,
so it is necessary to understand the drawer mode, and then modify it to single-layer mode, so the second section of this single-layer mode will be realized next.

2. The core class of Launcher3 customized double-layer to single-layer (remove drawer type 2)

    packages/apps/Launcher3/src/com/android/launcher3/model/BaseModelUpdateTask.java
    packages/apps/Launcher3/src/com/android/launcher3/model/PackageUpdatedTask.java

3. Realization and analysis of the core functions of Launcher3 customized double-layer to single-layer (remove the drawer type 2)

Launcher3 customized double-layer to single-layer (remove drawer 2) function is being implemented,

In the android system, Launcher3 is the default desktop of the system. It is mainly responsible for the interaction between the user and the system. By loading the
default app in the system and displaying it on the desktop, the user can perform related operations. The default in Launcher3 is the drawer style. ,
is to display all the app lists on the desktop by sliding up gestures. Some customers like this style, but most users decide it is a bit
troublesome, so in most cases, it is necessary to change the drawer double-layer style to a single-layer style. Next, this series will implement Launcher3’s default
double-layer drawer to a single-layer style to display the list of desktop apps Series 2

3.1 Core function analysis of BaseModelUpdateTask.java about updating app

Launche

Guess you like

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