Current location - Trademark Inquiry Complete Network - Trademark registration - How does Android Launcher get rid of the main menu? All applications are placed on the desktop, similar to Xiaomi desktop.
How does Android Launcher get rid of the main menu? All applications are placed on the desktop, similar to Xiaomi desktop.
launcher 3/src/com/Android/launcher 3/

1.AppsCustomizePagedView.java

public static boolean DISABLE _ ALL _ APPS = true; //mtk modification

2.AppsCustomizePagedView.java

Protected void on measure (int width measurespec, int height measurespec) (

int width = measure spec . getsize(widthMeasureSpec);

int height = measure spec . getsize(heightsmeasurespec);

LauncherLog.d (label, "On Measure Misedit Mode ="+Misedit Mode+Width MeasureSpec+""+Heightsmeasurespec.

+""+width+""+height);

If (! isDataReady()) {

LauncherLog.d (label, "On Measure Disable _ All _ Appsis"+Disable _ All _ Apps

+ " ! MApps.isEmpty () is "+! mApps.isEmpty()

+ " ! mWidgets.isEmpty()" +mwidgets . isempty());

if ((DISABLE_ALL_APPS ||(! mapps . isempty()& amp; & ampmAppsHasSet))& amp; & amp! mwidgets . isempty()){//MTK modify

setDataIsReady();

SetMeasuredDimension (width, height);

OnDataReady (width, height);

}

}

super . on measure(widthMeasureSpec,heightsmeasurespec);

}

3.Launcher.java

Private Void ShowApps CustomizeHelper (final Boolean animation, final Boolean springLoaded,

Finally, AppsCustomizePagedView. Content Type Content Type)

......

//If you want to apply customization from the workspace, shrink the workspace.

Anim = Anim = Anim =

Mworkspace. getchangestateanimation (workspace. State. Small, animated);

//If (! AppsCustomizePagedView。 DISABLE_ALL_APPS) {//mtk modification

//Set the content type of all application spaces.

mappscustomizetabhost . setcontenttypeimmediate(content type);

//} //mtk modification

......

}

4.default_workspace.xml file (this file has multiple paths, so please be sure to modify it to a correct file, such as MediaTek/Operator/Yes).

The file will be configured with the hotseat icon, and the screen position is not configured as 2 by default. This is the original allapp button. After this customization, you need to configure screen2 instead of screen 4. Therefore, please modify the screen id of the original four hotseat icons accordingly, from 0 to 3.