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

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 first section of this single-layer mode will be realized next.

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

    packages/apps/Launcher3/src/com/android/launcher3/config/BaseFlags.java
    packages/apps/Launcher3/src/com/android/launcher3/model/LoaderTask.java
    packages/apps/Launcher3/src/com/android/launcher3/model/VerifyIdleAppTask.java

3. The core function analysis and realization of Launcher3 customized double layer to single layer (remove the drawer type 1)

Launcher3 customizes the function of double-layer to single-layer (remove the drawer type 1). 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, it is displayed on the desktop
. Let users perform related operations, and the default in Launcher3 is the drawer style, which is to
display all the app lists on the desktop through the upward sliding gesture. Some customers like this style, but most users decide it is a bit
troublesome, so In most cases, it is necessary to change the double-layer drawer style to a single-layer style. Next, this series will implement the default
double-layer drawer style of Launcher3 to a single-layer style to display the desktop app list.

 3.1 Base

Guess you like

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