- Launcher2 has 4x4 appwidget grid.
- There are six standard widget sizes, based on a Home screen grid of 4 x 4 (portrait) or 4 x 4 (landscape) cells.
So here are some hint to expand the ability of Launcher2. Please note the number of home screens and the grid layout should be kept as its standard for compatibility.
- How to change the layout of appwidgets: Modify launcher.java and the layout xml files:
- launcher.java
- res/layout-port/launcher.xml
- res/layout-port/workspace_screen.xml
- res/values-port/dimens.xml
- How to increase the number of home screens As the same way, modify Launcher.java as follows:
--- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -125,2 +125,2 @@ public final class Launcher extends Activity - static final int NUMBER_CELLS_X = 4; - static final int NUMBER_CELLS_Y = 4; + static final int NUMBER_CELLS_X = 8; + static final int NUMBER_CELLS_Y = 8;
--- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -123 +123 @@ public final class Launcher extends Activity - static final int SCREEN_COUNT = 5; + static final int SCREEN_COUNT = 8;
0 件のコメント:
コメントを投稿