效果展示

代码实现
找到com.android.launcher3.IconCache,找到cacheLocked方法

增加如下代码(修改标题和图标)
entry.title = "itfitness";
entry.icon = BitmapFactory.decodeResource(mContext.getResources(), R.drawable.itfitness);

找到com.android.launcher3.IconCache,找到cacheLocked方法
增加如下代码(修改标题和图标)
entry.title = "itfitness";
entry.icon = BitmapFactory.decodeResource(mContext.getResources(), R.drawable.itfitness);
本文标题:Android Framework小改一下Launcher玩玩
本文链接:https://www.haomeiwen.com/subject/bukhkdtx.html
网友评论