本文主要是介绍android11 加入GMS后修改launcher图标顺序,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
使用的launcher
\vendor\partner_gms\apps\SearchLauncher
使用的布局
vendor\partner_gms\apps\GmsSampleIntegration
vendor\partner_gms\apps\GmsSampleIntegration\res_dhs_full\xml
<folder title="@string/google_folder_title" container="-101" screen="0" x="0" y="0"><favorite packageName="com.google.android.googlequicksearchbox" className="com.google.android.googlequicksearchbox.SearchActivity"/><favorite packageName="com.android.chrome" className="com.google.android.apps.chrome.Main"/><favorite packageName="com.google.android.gm" className="com.google.android.gm.ConversationListActivityGmail"/><favorite packageName="com.google.android.apps.maps" className="com.google.android.maps.MapsActivity"/><favorite packageName="com.google.android.apps.docs" className="com.google.android.apps.docs.app.NewMainProxyActivity"/><favorite packageName="com.google.android.apps.youtube.music" className="com.google.android.apps.youtube.music.activities.MusicActivity"/><favorite packageName="com.google.android.videos" className="com.google.android.youtube.videos.EntryPoint"/><favorite packageName="com.google.android.apps.tachyon" className="com.google.android.apps.tachyon.MainActivity"/><favorite packageName="com.google.android.apps.photos" className="com.google.android.apps.photos.home.HomeActivity"/></folder><favorite container="-101" screen="1" x="1" y="0" packageName="com.google.android.youtube" className="com.google.android.youtube.app.honeycomb.Shell$HomeActivity"/><favorite container="-101" screen="2" x="2" y="0" packageName="com.google.android.calendar" className="com.android.calendar.event.LaunchInfoActivity"/><favorite container="-101" screen="3" x="3" y="0" packageName="com.android.vending" className="com.android.vending.AssetBrowserActivity"/><favorite container="-101" screen="4" x="4" y="0" packageName="com.android.camera2" className="com.android.camera.CameraActivity"/>
container="-101" 最底部那行,是 Hotseat
screen="1" 下标从零开始,这里是第二个显示
因为是在 Hotseat,这里只有一行 xy坐标无用,只有screen表示顺序
这里布局就是所有的都显示在 Hotseat ,最底部那行
分别是 GoogleFolder YouTube Calendar Playstore Camera
如果在Hotseat 上面就需要xy坐标显示
<favorite screen="0" x="0" y="0" packageName="com.google.android.dialer" className="com.google.android.dialer.extensions.GoogleDialtactsActivity"/><favorite screen="1" x="1" y="0" packageName="com.google.android.apps.messaging" className="com.google.android.apps.messaging.ui.ConversationListActivity"/><favorite screen="2" x="2" y="0" packageName="com.google.android.calendar" className="com.android.calendar.event.LaunchInfoActivity"/><favorite screen="3" x="3" y="0" packageName="com.google.android.contacts" className="com.android.contacts.activities.PeopleActivity"/><favorite screen="4" x="4" y="0" packageName="com.android.camera2" className="com.android.camera.CameraActivity"/>
这篇关于android11 加入GMS后修改launcher图标顺序的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!