1、有时workspace 的高度太大了,覆盖了上面的 qsb_bar搜索栏, 改变Launcher中workspace里icon的个数就好了:
niming@ubuntu:/home/user/workspace2/niming/a23-kitkat/android/packages/apps/Launcher2$ git diff res/values-sw600dp/config.xml
diff --git a/res/values-sw600dp/config.xml b/res/values-sw600dp/config.xml
old mode 100644
new mode 100755
index 121e86a..e55f7b8
--- a/res/values-sw600dp/config.xml
+++ b/res/values-sw600dp/config.xml
@@ -1,6 +1,6 @@
<resources>
- <integer name="cell_count_x">8</integer>
- <integer name="cell_count_y">5</integer>
+ <integer name="cell_count_x">5</integer>
+ <integer name="cell_count_y">3</integer>
<integer name="apps_customize_cell_count_y">4</integer>
<integer name="apps_customize_cell_count_x">7</integer>
<integer name="hotseat_cell_count">9</integer>
2、使横屏中的搜索栏缩短一点,则修改qsb_padding_left和qsb_padding_right的值。
使得workspace里的divider分频器变短一点,则修改workspace_divider_padding_left和workspace_divider_padding_right
niming@ubuntu:/home/user/workspace2/niming/a33-v2.0/android/packages/apps/Launcher2$ git diff
diff --git a/res/values-sw600dp-land/dimens.xml b/res/values-sw600dp-land/dimens.xml
old mode 100644
new mode 100755
index 3d4ba1c..8da4e07
--- a/res/values-sw600dp-land/dimens.xml
+++ b/res/values-sw600dp-land/dimens.xml
@@ -31,12 +31,14 @@
<!-- QSB -->
<dimen name="qsb_bar_height">82dp</dimen>
+ <dimen name="qsb_padding_left">109dp</dimen>
+ <dimen name="qsb_padding_right">109dp</dimen>
<dimen name="toolbar_button_vertical_padding">12dip</dimen>
<dimen name="toolbar_button_horizontal_padding">20dip</dimen>
<!-- Workspace -->
- <dimen name="workspace_divider_padding_top">12dp</dimen>
- <dimen name="workspace_divider_padding_bottom">12dp</dimen>
- <dimen name="workspace_divider_padding_left">0dp</dimen>
- <dimen name="workspace_divider_padding_right">0dp</dimen>
+ <dimen name="workspace_divider_padding_top">0dp</dimen>
+ <dimen name="workspace_divider_padding_bottom">0dp</dimen>
+ <dimen name="workspace_divider_padding_left">109dp</dimen>
+ <dimen name="workspace_divider_padding_right">109dp</dimen>
</resources>