Full-screen folders: a column count of their own

Settings, Folders, Grid now has a Columns slider for full-screen folders
(2 to 6, or up to the home screen's count when that is higher), next to
the rows. Until it is moved it shows and uses the home screen's columns,
so folders look as before. Fewer columns spread the apps over the home
screen grid's width; more bring them closer together, never more than
fit with a whole icon in each. The floating folder's own column slider
is shown again when full-screen folders are switched off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
TMCandClaude Opus 5.5 committed 2026-11-15 14:36:20 +01:00
1 parent 397b0ac1f7
commit 5f4e1367ec
5 files changed
+91 -27

No files matched your search

@@ -148,8 +148,8 @@ public class FolderPagedView extends PagedView<PageIndicatorDots> implements Cli
/**
* Flexera Launcher: a full-screen folder (app.flexera.home.FullScreenFolders) lays its apps out
* in the home screen's columns, each as wide as on the home screen; a floating one in its own
* grid. Called as the folder opens, before its items are bound. {@code maxHeight} is the most
* across the home screen's grid, in the home screen's columns or in as many as the owner
* chose; a floating one in its own grid. Called as the folder opens, before its items are bound. {@code maxHeight} is the most
* this view can be high in the folder, its padding included.
*/
void setFullScreen(boolean fullScreen, int maxHeight) {
@@ -161,7 +161,8 @@ public class FolderPagedView extends PagedView<PageIndicatorDots> implements Cli
int gap = grid.folderCellLayoutBorderSpacePx.y;
int room = maxHeight - getPaddingTop() - getPaddingBottom();
int rowsThatFit = (room + gap) / (FullScreenFolders.cellSize(launcher).y + gap);
mOrganizer = FolderGridOrganizer.createFullScreenFolderGridOrganizer(grid, rowsThatFit);
mOrganizer = FolderGridOrganizer.createFullScreenFolderGridOrganizer(
grid, FullScreenFolders.columns(launcher), rowsThatFit);
} else {
mOrganizer = mFloatingOrganizer;
}
@@ -432,7 +433,8 @@ public class FolderPagedView extends PagedView<PageIndicatorDots> implements Cli
if (mFolder.isInAppDrawer()) {
page.setCellDimensions(grid.getAllAppsProfile().getCellWidthPx(), grid.getAllAppsProfile().getCellHeightPx());
} else if (mFullScreen && mFolder.mActivityContext instanceof Launcher launcher) {
// Flexera Launcher: cells as large as the home screen's, so that the apps line up.
// Flexera Launcher: cells that share the home screen grid's width out among the
// folder's columns; with as many columns as the home screen, its cells exactly.
Point cell = FullScreenFolders.cellSize(launcher);
page.setCellDimensions(cell.x, cell.y);
} else {