调整图标边距
vendor\sprd\platform\packages\apps\SprdLauncher\src\com\android\sprdlauncher3\BubbleTextView.java
setCompoundDrawables(null, iconDrawable, null, null);
if (setDefaultPadding) {
DeviceProfile grid = app.getDynamicGrid().getDeviceProfile();
- setCompoundDrawablePadding(grid.iconDrawablePaddingPx);
+ setCompoundDrawablePadding(0);
}
显示hotseat应用名称
vendor\sprd\platform\packages\apps\SprdLauncher\src\com\android\sprdlauncher3\Hotseat.java
allAppsButton.setContentDescription(context.getString(R.string.all_apps_button_label));
+ allAppsButton.setText(R.string.all_apps_button_label);
allAppsButton.setOnKeyListener(new HotseatIconKeyEventListener());
在hotseat中隐藏文件夹标题
vendor\sprd\platform\packages\apps\SprdLauncher\src\com\android\sprdlauncher3\Workspace.java
// Hide folder title in the hotseat
if (child instanceof FolderIcon) {
- ((FolderIcon) child).setTextVisible(false);
+ ((FolderIcon) child).setTextVisible(true);
}
让Hotseat/底部菜单栏的图标显示标题
vendor\sprd\platform\packages\apps\SprdLauncher\src\com\android\sprdlauncher3\CellLayout.java
public boolean addViewToCellLayout(View child, int index, int childId, LayoutParams params,
boolean markCells) {
final LayoutParams lp = params;
// Hotseat icons - remove text
//if (child instanceof BubbleTextView) {
// BubbleTextView bubbleChild = (BubbleTextView) child;
// bubbleChild.setTextVisibility(!mIsHotseat);
// }
// Hide folder title in the hotseat
if (child instanceof FolderIcon) {
- ((FolderIcon) child).setTextVisible(false);
+ ((FolderIcon) child).setTextVisible(true);
}