android 让Launcher Hotseat中的图标显示title

1、请修改alps/packages/apps/Launcher2/res/values/dimens.xml中的hotseat_cell_height值,例如修改为100;
2、请修改alps/packages/apps/Launcher2/src/com/android/launcher2/HotSeat.java中的resetLayout()方法,对主菜单图标添加title,例如:添加allAppsButton.setText("allAppsButton_title");
3、请修改alps/packages/apps/Launcher2/src/com/android/launcher2/CellLayout.java的addViewToCellLayout方法,将下面的代码注释掉:
        // Hotseat icons - remove text
        if (child instanceof BubbleTextView) {
            BubbleTextView bubbleChild = (BubbleTextView) child;
            bubbleChild.setTextVisibility(!mIsHotseat);
        }    

你可能感兴趣的:(android)