Auto layout is a way of grouping x amount of elements together, while maintaining the same spaces within this group. This method is very convenient for creating components of the same type (various cards of goods, news, vacancies; entities in which content can change and resize) and further combining them into blocks.
Auto layouts are categorized into horizontal, vertical, and using rebuilding to the next line. They also differ in the type of spaces. There are positive and negative values. What type of auto layout is needed depends on the task being solved.
Auto layouts will discipline you. The spread of spaces will be reduced and it will be easier to make a neat site. Also, you will not use the text mode because of this, when its height is fixed and does not depend on its volume.
Here's an example using auto-layout.
With a good pumping of the skill, you can collect entire pages on auto layouts, this is very practical for further replacement, adding new blocks, as well as in case of revising the page structure.
Page assembled on autolayout
To apply auto layout to a group, press Shift+A. After that, windows for its settings will appear in the right toolbar:
You can also set the minimum and maximum height/width for auto layouts. This is necessary to use the Wrap setting, which allows you to distribute content in auto layout with the rebuilding of blocks to the next line, as well as to maintain the minimum/maximum view of the component in the layout.
We use internal spaces in layouts to reduce the number of nested layers.
When organizing space in layouts, it’s important to start with internal components and gradually move to external ones. This helps to take into account aspects such as the click area, variability, and completeness of the component as an independent unit of the interface. In addition, this approach reduces the number of layers and makes the layout more convenient for work and perception.
For example, by setting internal spaces for the Assets block, we can avoid creating an additional vertical layout with spacing of 16, which would otherwise have to be tied to the top tabs.
The principle of assembly on autolayout