Launcher3移除Hotseat圖標

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;

 


 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章