1.概述
在10.0的系统产品开发中,在laucher3中,所有的app icon和名称 以及Hotseat 文件夹都是用BubbleTextView类来构造的,所以要修改图标就要从这个类来分析源码
2.Launcher3修改某个app icon的图标的核心类
/package/app/Launcher3/src/com/android/launcher3/BubbleTextView.java
3.Launcher3修改某个app icon的图标的核心功能分析和实现
通过上面的分析,需要看BubbleTextView.java是如果绘制app的图标的
路径:
/package/app/Launcher3/src/com/android/launcher3/BubbleTextView.java
/**
* TextView that draws a bubble behind the text. We cannot use a LineBackgroundSpan
* because we want to make the bubble taller than the text and TextView's clip is
* too aggressive.
*/
public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, OnResumeCallback {
public BubbleTextVie