Skip to content
CrossFly is 100% open sourceFollow us on GitHub
CrossFlyCrossFly
Get started

This documentation is currently available in Portuguese. English and other languages are on the way.

UI — Building the interface

Layouts

Arranging components on screen — grid, vertical, horizontal and responsiveness, one layout per page with example and diagram.

Reference
EvenlySpacedLayout

Distributes children with equal spacing along an axis, preserving each one's size.

Reference
GridLayout

Grid of columns by fraction, one row height per tallest content.

Reference
HorizontalLayout

Lays out children side by side, each at the container's height.

Reference
RandomLayout

No automatic arrangement — manual positioning (setBounds) or relative (setRelativeBounds).

Reference
RelativeLayout

Positions and sizes by anchors — relative to the container or to another component.

How-to
Responsiveness

How to ensure any layout adapts to screen size, density and font.

Reference
VerticalLayout

Stacks children top to bottom, each at the container's width.