首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

批改Android4.0.3桌面图标的行数和列数

2012-12-26 
修改Android4.0.3桌面图标的行数和列数上网搜索修改Android桌面图标的行数和列数修改workspace_screen.xml

修改Android4.0.3桌面图标的行数和列数

上网搜索修改Android桌面图标的行数和列数

修改workspace_screen.xml中增加

launcher:shortAxisCells="4"launcher:longAxisCells="4"     


发现到Android4.0.3下编译出现出错,可能是4.0以下的版本支持吧

之后到launcher.xml修改

launcher:defaultScreen="2"launcher:cellCountX="4"launcher:cellCountY="4"

修改编译也没作用,之后查看Android源码到Workspace.java中

private static final int DEFAULT_CELL_COUNT_X = 4;private static final int DEFAULT_CELL_COUNT_Y = 4;

根据需求修改DEFAULT_CELL_COUNT_X与DEFAULT_CELL_COUNT_Y即可.

 

 

 

 

 

 

热点排行