Launcher2折腾之路(2)
1,改变apps的行列数(默认是8*5),和调整ICON大小
APP行列数改变values-sw720dp/config.xml (找到对应的config.xml文件,我这里只是以当面分辨率来测试)
1 | <integer name="cell_count_x"> 5</ integer> |
2 | <integer name="cell_count_y"> 3</ integer> |
3 |
2,widgets的行列数在这里修改value_sw720dp_land/dimen.xml
1 | <integer name="apps_customize_widget_cell_count_x">3</integer > |
2 | <integer name="apps_customize_widget_cell_count_y">2</integer > |
3 |
3,work space ICON size调整:values-sw720dp/dimen.xml
1 | <dimen name="workspace_cell_width_land">144dp</dimen > |
2 | <dimen name="workspace_cell_width_port">144dp</dimen > |
3 | <dimen name="workspace_cell_height_land">144dp</dimen > |
4 | <dimen name="workspace_cell_height_port">144dp</dimen > |
5 |
1 | <dimen name="apps_customize_pageLayoutWidthGap">28dp</dimen > |
2 | <dimen name="apps_customize_pageLayoutHeightGap">16dp</dimen > |
3 | <dimen name="apps_customize_pageLayoutPaddingLeft">16dp</dimen > |
4 | <dimen name="apps_customize_pageLayoutPaddingRight">16dp</dimen > |
5 |
暂时先修改一下xml控制的参数,以后再修改里面的逻辑,慢慢摸索。来张效果图,