How to set the layout, such as flex or grid?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to set the layout, such as flex or grid?

1,011 Views
xiazp
Contributor I

I can't find a widget that can set the layout, please help me.
lv_obj_set_layout(obj, <LAYOUT_NAME>) 

0 Kudos
Reply
1 Reply

970 Views
WenbinYuan
NXP Employee
NXP Employee

Hello @xiazp ,

 

Because GUI Guider utilizes drag-and-drop functionality to change the position of widgets, which means using coordinates to define their placement, this can sometimes conflict with layout settings, leading to discrepancies between the editor's preview and the actual runtime appearance. As such, GUI Guider currently does not support layout settings.

You can use custom code to apply layout settings and override the coordinate-based positioning, but please be aware that this may result in differences between the editor's layout preview and the final runtime appearance.

 

Best Regards,

Wenbin

0 Kudos
Reply