@title Grid FR units
@brief Share remaining space across tracks with fr() weights.
The first column has a fixed 60px size; the next two columns use fr(1) and fr(2) and
split the remaining width in a 1:2 ratio. The same idea applies to rows: the first row
is fixed at 44px and the second uses fr(1) to absorb the leftover height.
-->
<screen>
<view
flex_flow="column"
style_flex_main_place="center"
style_flex_cross_place="center"
style_flex_track_place="center"
>
Rows: 44px, 1fr. -->
<lv_obj
name="container_1"
style_grid_column_dsc_array="80 fr(1) fr(2)"
style_grid_row_dsc_array="44 fr(1)"
style_layout="grid"
width="100%"
height="190"
>
<lv_label
name="label_1"
style_grid_cell_x_align="stretch"
style_grid_cell_column_pos="0"
style_grid_cell_y_align="stretch"
style_grid_cell_row_pos="0"
style_bg_color="0xb8d8f8"
style_bg_opa="100%"
text="80px"
/>
<lv_label
name="label_2"
style_grid_cell_x_align="stretch"
style_grid_cell_column_pos="1"
style_grid_cell_y_align="stretch"
style_grid_cell_row_pos="0"
style_bg_color="0x7ec8ff"
style_bg_opa="100%"
text="1fr"
/>
<lv_label
name="label_3"
style_grid_cell_x_align="stretch"
style_grid_cell_column_pos="2"
style_grid_cell_y_align="stretch"
style_grid_cell_row_pos="0"
style_bg_color="0x4daff7"
style_bg_opa="100%"
text="2fr"
/>
<lv_obj
name="container_2"
style_grid_cell_x_align="stretch"
style_grid_cell_column_pos="0"
style_grid_cell_y_align="stretch"
style_grid_cell_row_pos="1"
style_bg_color="0xb8d8f8"
style_bg_opa="100%"
>
<lv_label name="label_4" text="80px" align="center" />
</lv_obj>
<lv_obj
name="container_3"
style_grid_cell_x_align="stretch"
style_grid_cell_column_pos="1"
style_grid_cell_y_align="stretch"
style_grid_cell_row_pos="1"
style_bg_color="0x7ec8ff"
style_bg_opa="100%"
>
<lv_label name="label_5" text="1fr" align="center" />
</lv_obj>
<lv_obj
name="container_4"
style_grid_cell_x_align="stretch"
style_grid_cell_column_pos="2"
style_grid_cell_y_align="stretch"
style_grid_cell_row_pos="1"
style_bg_color="0x4daff7"
style_bg_opa="100%"
>
<lv_label name="label_6" text="2fr" align="center" />
</lv_obj>
</lv_obj>
</view>
</screen>