1.Android_src\packages\apps\Launcher\res\layout-port\workspace_screen.xml
一个是横屏,一个是竖屏的布局。调整以下字段:
launcher:shortAxisCells="4"
launcher:longAxisCells="4"
2.Launcher2和Launcher里面的代码不同,经过以上的修改,在重启后,还是恢复成4*4的格局。还要修改Launcher.java里面的常数:
static final int NUMBER_CELLS_X = 4;
static final int NUMBER_CELLS_Y = 4;
阅读(2583) | 评论(0) | 转发(0) |