1.概述
? 在12.0的系統(tǒng)開發(fā)中,在對Launcher3進行功能開發(fā)時,系統(tǒng)默認(rèn)的app列表頁排序是安裝app名稱進行排序的,由于功能的需要要求按照app安裝時間進行排序,這就需要找到相關(guān)的排序地方,進行排序方式的修改就能完成這個功能文章來源地址http://www.zghlxwxcb.cn/news/detail-457807.html
2.Launcher3 app列表頁桌面圖標(biāo)按安裝時間排序的相關(guān)代碼
packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsRecyclerView.java
packages/apps/Launcher3/src/com/android/launcher3/allapps/AlphabeticalAppsList.java
packages/apps/Launcher3/src/com/android/launcher3/allapps/AppInfoComparator.java
3.Launcher3 app列表頁桌面圖標(biāo)按安裝時間排序相關(guān)功能分析 ? 3.1 AllAppsRecyclerView.java關(guān)于獲取app列表的功能分析
public class AllAppsRecyclerView extends BaseRecyclerView implements LogContainerProvider {
private AlphabeticalAppsList mApps;
private final int mNumAppsPerRow;
// The specific view heights that we use to calculate scroll
private final SparseIntArray mViewHeights = new SparseIntArray();
文章來源:http://www.zghlxwxcb.cn/news/detail-457807.html
到了這里,關(guān)于Android 12.0 Launcher3 app列表頁桌面圖標(biāo)按安裝時間排序的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!