android 9.0 Launcher3 page icon horizontal line changed to small dots

1 Overview

  In the 9.0 rom product customization development, for the sliding paging icon of the workspace of Launcher3, the original one is a horizontal line, but in Launcher3, which has a single layer of products to remove the drawer, it feels
unsightly to slide and turn pages, so the product development needs require changes. It becomes a dot page turning instruction, which needs to look at the layout-related process, and then modify it to a dot page turning icon.

2. The core class of Launcher3 paging icon horizontal line changed to small dot

packages/apps/Launcher3/res/layout/launcher.xml
packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
packages/apps/Launcher3/src/com/android/launcher3/states/SpringLoadedState.java
packages/apps/Launcher3/src/com/android/launcher3/pageindicators/PageIndicatorDots.java

3. Analysis and implementation of the core function of changing the horizontal line of the paging icon of Launcher3 into a small dot

3.1 Relevant analysis on paging icon layout in launcher.xml

   <com.android.launcher3.LauncherRootView
     xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:launcher="http://schemas.android.com/apk/res-auto"
     android:id="@+id/launcher"
     android:layout_width="match_parent"
     android:layout_height

Guess you like

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