预置 workspace 图标

一、为了减少对源代码的修改,我们在ext目录定义了如下xml,方便用户可以直接修改worksapce桌面图标布局。
二、路径:packages\apps\Launcher3\ext\res\xml\dw_base_customize.xml
三、添加内容:
<favorite
launcher:screen=“0”//页面
launcher:x="-1"//x坐标位置
launcher:y="-1"//y坐标位置
launcher:packageName=“com.android.settings”//包名
launcher:className=“com.android.settings.Settings” />//类名

猜你喜欢

转载自blog.csdn.net/baidu_41672657/article/details/83410051