Pages and links
The 2D page grid, the cable model for navigation, page types, and how a transition decides whether a page covers what is behind it.
On this page
A theme's pages form a grid, not a list: column runs horizontally, the classic left-right home screen, and row runs vertically. Row 0 is the home row. Anything above or below it is reached by swiping up or down.
But the grid is only the layout. What decides where a swipe actually goes is the set of links.
Links are cables#

A link connects an edge of one page to an edge of another:
{ "from": "home", "fromSide": "bottom", "to": "drawer", "toSide": "top", "transition": "cover" }Read it as a cable plugged into the bottom edge of home and the top edge of drawer.
The edge says where the neighbour lies, not which way your finger moves. Those are opposites, in the same way they are when you turn a page:
| Cable in the | Neighbour lies | You get there by swiping |
|---|---|---|
| right edge | to the right | right to left |
| left edge | to the left | left to right |
| bottom edge | below | up |
| top edge | above | down |
So the drawer above, hanging off the bottom edge of home, is the familiar swipe up.
One edge can carry only one cable, because one edge is one gesture and two cables there would be two answers to it. The exception is a page marked acceptsManyLinks, which takes any number on every edge: that is the shape of a drawer you swipe up to from anywhere but that has no particular page to go back to.
A cable works in both directions and is stored once. pageLinks is the truth about navigation; column and row are how that truth is drawn.
"version": 2in a theme means "the links are what they say". In a version 1 theme anempty link list means "made before links existed" and navigation is derived from the grid
instead. Without that marker, "I cut every cable" could not be saved, because the next read would
put them all back.
Transitions#
transition on a link decides how the move looks, in both directions and on both axes:
| Value | What happens |
|---|---|
slide | Side by side; the arriving page pushes the current one out. The default. |
plain | Like slide with no scaling and no dimming. For pages with a dark solid background, where the 3 % scale-down shows a bright rim of wallpaper. |
overlay | The arriving page slides in front of the current one, which stays put. The classic glass drawer. |
cover | Like overlay, but opaque: the arriving page fills the screen and the outgoing one leaves with it, dock and search bar included. |
fade | The arriving page fades in on top. |
zoom | The arriving page grows out of the centre. |
The difference between overlay and cover is the one that matters in practice. A glass drawer wants the clock and dock visible behind it, so the page underneath must stay. A full-bleed feed page wants the opposite: if the dock stayed, the feed's edge would cut through the icons. That is a property of the movement, which is why it lives in the transition and not in a separate "does this page cover" switch that could contradict it.
Unknown values fall back to slide, so a theme written against a newer version still opens.
What a page itself can be set to#
The gear above the canvas opens the page's own settings, the things that belong to the page rather than to anything on it.
Background. Wallpaper lets the system wallpaper through, Colour fills it, Gradient takes two colours and an angle, Image takes a source. On top of that sits a dim colour with an amount, and a blur radius.
The dim amount is a formula, which is the interesting part: a page can darken as another is pulled over it, or at night, without anything animating.
Drawer gesture and drawer animation apply to pages of the drawer type.
Note that the fill of a normal page is only visible where the page itself is visible. The one that shows through everywhere is the background layer, which is also the fill the launcher hands to the live wallpaper.
Page types#
pageType | What it is |
|---|---|
home | An ordinary page. |
background | The layer behind every page: what a slide transition reveals in the gap, and where the wallpaper settings apply. |
drawer | An ordinary page, historically distinguished. Nothing about it is special any more: a drawer is a page reached by a link with an overlay transition. |
template | An invisible placeholder. Dragging an app onto it creates a real page as a copy. That is how "swipe right for a new page" works without shipping twenty empty pages. |
notifications | Not a page you can put elements on: swiping to it opens the system notification shade. |
Reusing a page layout#
Two different things are called a template here, and they solve different problems.
A template page is a page inside your theme with pageType set to template. It is invisible in use and holds a layout rather than content. Dragging an app onto it turns it into a real page, built as a copy of that layout. That is how "swipe right for a new page" works without shipping twenty empty pages: one template page, cloned on demand, and the cables plugged into it are inherited by every page made from it.
In the page overview a template page is the card drawn with a dashed outline.
The template collection is the other one, and it lives outside any theme. A page layout you save goes into a collection shared across all your themes, with its app slots emptied. When you add a page with the + in the page overview, you can pick one from that collection instead of starting empty; it is cloned in with fresh ids.
So: a template page is part of one theme and makes pages while the theme is in use. The collection is your own shelf of layouts, and it makes pages while you are building.
Reaching a page without a swipe#
The go_to_page action navigates to a page id from any tap. A page with no cables at all is not broken; it is a page that is only reachable deliberately.
Which page you land on#
defaultPageId is the page shown when the launcher starts and the one the home button returns to. Leave it out and the first page wins.
Documentation for launcher 0.1.0-alpha Android 12 and later last updated