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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,015件の閲覧回数
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 件の賞賛
返信
1 返信

974件の閲覧回数
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 件の賞賛
返信