packages\apps\Launcher3\src\com\android\launcher3\InvariantDeviceProfile.java
在
ArrayList<InvariantDeviceProfile> getPredefinedDeviceProfiles()
方法内更改
predefinedDeviceProfiles.add(new InvariantDeviceProfile("Nexus 4", //modify start by fanlj@20170331 //335, 567, 4, 4, 4, 4, 4, DEFAULT_ICON_SIZE_DP, 13, 5, 56, R.xml.default_workspace_4x4)); 335, 567, 4, 4, 3, 4, 4, DEFAULT_ICON_SIZE_DP, 13, 5, 56, R.xml.default_workspace_4x4)); //modify end
第五个参数为行数 第六个为列数