Launcher3/res/xml/default_workspace_4x4.xml中刪除
<include launcher:workspace="@xml/dw_phone_hotseat" />
這個時候不會出現Hotseat圖標,但是底部仍然會有空白的空間
Launcher3\src\com\android\launcher3\DeviceProfile.java
// hotseatBarSizePx = isVerticalBarLayout()
// ? Utilities.pxFromDp(inv.iconSize, dm)
// : res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_size)
// + hotseatBarTopPaddingPx + hotseatBarBottomPaddingPx;
hotseatBarSizePx = 0;
將
// Hotseat
if (isVerticalBarLayout()) {
hotseatBarSizePx = iconSizePx;
}
hotseatCellHeightPx = iconSizePx;
修改爲
// Hotseat
if (isVerticalBarLayout()) {
hotseatBarSizePx = 0;//iconSizePx;
}
hotseatCellHeightPx = 0;//iconSizePx;