Android have the ConstraintLayout.1
GTK have the Box2 and Grid3 classes.
In XUL, like the vbox container to stack components on top of each other.
This piece of code shows 3 buttons stacked on top of each other in a vertical box.
The DockPanel container lays out children components according to their Dock properties.
This code shows 4 text blocks on top of each other.
The FlowLayout layout manager arranges components in a directional flow, much like lines of text in a paragraph. It arranges components horizontally until no more components fit on the same line, then it places them on another line. Other layout managers are GridLayout managers which arrange the components in grid form and BorderLayout managers which also arranges the component in five parts of the frame, thus: south, north, west, east and center.
This code shows 5 buttons alongside each other on the same line:
"Build a responsive UI with ConstraintLayout | Views". Android Developers. Google. Retrieved 17 December 2024. https://developer.android.com/develop/ui/views/layout/constraint-layout ↩
"Gtk.Box". docs.gtk.org. Retrieved 17 December 2024. https://docs.gtk.org/gtk4/class.Box.html ↩
"Gtk.Grid". docs.gtk.org. Retrieved 17 December 2024. https://docs.gtk.org/gtk4/class.Grid.html ↩