首页 > 移动平台 > 详细

android 让Launcher Hotseat中的图标显示title

时间:2014-12-05 14:18:43      阅读:488      评论:0      收藏: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);
        }    

android 让Launcher Hotseat中的图标显示title

原文:http://blog.csdn.net/sergeycao/article/details/41722147

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!