Add shortcuts and folders on the launcher Desktop

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.