修改Launcher2中的格数

修改以下项:
packages/apps/Launcher2/res/layout-land/all_apps_2d.xml
<GridView android:id="@+id/all_apps_2d_grid"
android:numColumns="8"
packages/apps/Launcher2/res/layout-port/all_apps_2d.xml
<GridView android:id="@+id/all_apps_2d_grid"
android:numColumns="6"
packages/apps/Launcher2/res/layout-port/workspace_screen.xml 
<com.android.launcher2.CellLayout
    launcher:shortAxisCells="6"
    launcher:longAxisCells="6" />
packages/apps/Launcher2/res/layout-land/workspace_screen.xml
<com.android.launcher2.CellLayout
    launcher:shortAxisCells="6"
    launcher:longAxisCells="6" />
packages/apps/Launcher2/res/layout-land/live_folder_grid.xml
        <GridView
             android:numColumns="6" />
packages/apps/Launcher2/res/layout-land/user_folder.xml  
        <GridView
             android:numColumns="6" />
packages/apps/Launcher2/src/com/android/launcher2/Launcher.java
    static final int NUMBER_CELLS_X = 6;  //jeff. 4;
    static final int NUMBER_CELLS_Y = 6;  //jeff. 4;
packages/apps/Launcher2/src/com/android/launcher2/LauncherProvider.java
                        // Original widgets might not have valid spans when upgrading
                        if (favoriteType == Favorites.ITEM_TYPE_WIDGET_SEARCH) {
                            values.put(LauncherSettings.Favorites.SPANX, 6);  //jeff. 4);
                            values.put(LauncherSettings.Favorites.SPANY, 1);
                        }
        private boolean addSearchWidget(SQLiteDatabase db, ContentValues values) {
            ComponentName cn = getSearchWidgetProvider();
            //jeff. return addAppWidget(db, values, cn, 4, 1);
            return addAppWidget(db, values, cn, 6, 1);
        }

你可能感兴趣的:(android,search)