Android framework系统默认设置修改

Launcher 总结: 

1、launcher的布局太居中,要想两边拉伸

<\packages\apps\Launcher2\res\values\dimens.xml>

    apps_customize_pageLayoutPaddingLeft">40dp

    apps_customize_pageLayoutPaddingRight">40dp

apps tab栏的宽度( Launcher2icon 数目、大小)

\packages\apps\Launcher2\res\layout-sw720dp\workspace.xml>

   launcher:cellCountX="10"
    launcher:cellCountY="6"

 

2、或者不想改数目:

<\packages\apps\Launcher2\src\com\android\launcher2\AppsCustomizeTabHost.java>

    protected void onMeasure(intwidthMeasureSpec, int heightMeasureSpec) {

          mTabs.getLayoutParams().width= contentWidth  + 108;

 

3、workspace、AppsCustomize的cell

你可能感兴趣的:(Android,系统源码)