当前位置: 代码迷 >> 综合 >> android 让Launcher Hotseat中的图标显示title
  详细解决方案

android 让Launcher Hotseat中的图标显示title

热度:85   发布时间:2024-01-19 17:14:42.0
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);
        }    
  相关解决方案