预置 hotseat 图标

一、Hotseat图标位于待机界面最下面的一行,通常预置常驻应用
二、路径:packages\apps\Launcher3\res\xml\dw_phone_hotseat.xml
三、添加内容:
<resolve
launcher:container="-101"//图标的类型
launcher:screen=“1”//页面位置是hotseat自左到右的顺序位置
launcher:x=“1”//x轴位置,也是hotseat自左到右的顺序位置,与screen一致
launcher:y=“0” >//y轴位置,由于hotseat只有一行,故默认一直是0
//uri属性





四、Hotseat图标预置使用的是resolve标签和uri属性,好处是可以自适应。例如用户预置了其他第三方短信应用而没有使用原生短信应用,则该位置会根据resolve
标签和uri属性解析出第三方短信应用,进而填充hotseat图标。当然也可以使用favorite、shortcut、folder标签,请注意坐标和包名、类名的准确性。

猜你喜欢

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