android 让Launcher Hotseat中的图标显示title
16lz
2022-06-11
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);
}
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(安卓)之往通讯录中添加数据和查询数据
- android listview的一些设置
- tabcontent中scaleType的使用 图片Drawable和bitmap显示问题
- Android学习之菜单
- Android(安卓)Studio 小技巧(1):如何导入AAR文件
- Android非Kotlin支持项目添加Kotlin代码时的注意点
- Android(安卓)ApiDemos示例解析(15):App->Activity->SetWallpaper
- android 单元测试cmd 命令集
- android 开发-文件存储之读写sdcard