解决方案 »

  1.   

    修改这个文件src/com/android/launcher3/DynamicGrid.java
    public DynamicGrid(Context context, Resources resources,
                           int minWidthPx, int minHeightPx,
                           int widthPx, int heightPx,
                           int awPx, int ahPx) 以下是我修改的 2X6布局仅供参考:
             deviceProfiles.add(new DeviceProfile("Nexus S",
                     296, 491.33f,  4, 4,  48, 13, (hasAA ? 5 : 5), 48));
             deviceProfiles.add(new DeviceProfile("Nexus 4",
    -                335, 567,  4, 4,  DEFAULT_ICON_SIZE_DP, 13, (hasAA ? 5 : 5), 56));
    +                335, 567,  2, 6,  DEFAULT_ICON_SIZE_DP, 13, (hasAA ? 5 : 5), 56));
             deviceProfiles.add(new DeviceProfile("Nexus 5",
    -                359, 567,  4, 4,  DEFAULT_ICON_SIZE_DP, 13, (hasAA ? 5 : 5), 56));
    +                359, 567,  2, 6,  DEFAULT_ICON_SIZE_DP, 13, (hasAA ? 5 : 5), 56));
             deviceProfiles.add(new DeviceProfile("Large Phone",
    -                406, 694,  5, 5,  64, 14.4f,  5, 56));
    +                406, 694,  2, 6,  64, 14.4f,  7, 60));