AbstractOS

Search documentation

Find a docs page

Developer guideApp development

Adaptive layouts

Use breakpoints and adaptive containers so one UI works on every screen.

AbstractKit containers reflow at the same breakpoints the shell uses. Prefer them over checking the form factor directly.

BreakpointWidthTypical layout
compactunder 600 pxSingle column, bottom navigation
medium600–1200 pxSidebar collapses to an overlay
expandedover 1200 pxPersistent sidebar and detail pane
Rendering diagram
A SplitView collapsing on compact screens
window.ui
<object class="AkSplitView">
  <property name="collapse-below">compact</property>
  <child type="sidebar">
    <object class="AkNavList" id="nav"/>
  </child>
  <child type="content">
    <object class="AkStack" id="pages"/>
  </child>
</object>
Last updated Edit this page on GitLab