Modify the packages \ apps \ launcher2 \ res \ XML \ default_workspace.xml File
Reference: http://blog.csdn.net/xubin341719/article/details/7059285
Add shortcuts
<Favorite // program shortcut Launcher: classname = "com. android. camera. camera "// application class name Launcher: packagename =" com. android. camera "// app package name Launcher: screen =" 2 "// 3rd screen, 0-4 screen 5 screen Launcher: x =" 3 "// icon x location, the first in the upper left corner is 0, increasing to the left. There are 6 Launcher: Y = "3" type = "codeph" text = "codeph"/> // icon y positions. The first in the upper left corner is 0, increasing downward, 0-2, 3 in total
Add plug-ins
<Appwidget // plug-in Launcher: classname = "com. android. music. mediaappwidgetprovider "// launcher of the application class: packagename =" com. android. music "// The app package name Launcher: screen =" 4 "// 5th screen, 0-4 screen 5 screen Launcher: x =" 2 "// icon x location, the first in the upper left corner is 0, increasing to the left, and a total of 6 Launcher: Y = "1" // icon y position. The first in the upper left corner is 0, increasing downward, 0-2: 3 launcher in total: Spanx = "2" // number of occupied disks in the X direction Launcher: spany = "1"/> // number of occupied disks in the Y direction
Add search bar
<Search // search bar Launcher: screen = "1" // 2nd screen Launcher: x = "0" // icon X position Launcher: y = "1"/> // icon y position
Add a folder and add a shortcut
<folder launcher:title="@string/Kids" launcher:x="2" launcher:y="6" launcher:screen="2"><favorite launcher:packageName="com.xxx.xxx" launcher:className="com.xxx.xxx.Activity" launcher:x="0" launcher:y="0" /></folder>
XML method without source code replacement:
First rename the APK to zip, then open it with the extract software (do not unzip), then in RES/XML, xml-sw600dp, xml-sw720dp folder
Replace default_workspace.xml and close the decompression tool.
Then change it back to the original suffix.