目录

Layout

Layouts are classified into adaptive layout and responsive layout. The following table introduces the two types of layouts.

Type

Description

Adaptive layout

Elements can automatically adapt to changes in the external container size based on their relative relationships, which include the proportion, fixed aspect ratio, and display priority. The available adaptive layout capabilities include stretching, equal space distribution, proportional scaling, scaling, extension, hiding, and wrapping. These capabilities enable UIs to continuously change with the size of the external container.

Responsive layout

Elements can automatically adapt to changes in the external container size based on breakpoints, grid systems, or specific characteristics (such as screen orientation or window dimensions). The available responsive layout capabilities include breakpoints, media query, and grids. These capabilities enable the UI to adjust in response to discrete changes in its container's size. The layout can vary significantly under different conditions.

The adaptive layout primarily addresses layout differences within individual areas of a page, while the responsive layout focuses on layout relationships between different areas of a page.

Both adaptive and responsive layouts are typically implemented using or in combination with container components.

This section will sequentially introduce both adaptive and responsive layouts. Detailed usage of these layout capabilities is shown through practical implementations in both typical layout scenarios and page scenarios.