Howto get lv_list_create generated ?

What do you want to achieve?

I found in the “SenseCAP_Indicator_ESP32” example “indicator_basis” in “ui.c” the following code generated :
lv_obj_t * config_list = lv_list_create(ui_screen_date_time);

But couldn’t figure how to get such code.
Note by the way that the generated object is not ui_ prefixed !

What have you tried so far?

All the proposed widgets but none does the trick.

Screenshot or video

Others

  • SquareLine Studio version: 1.5.0
  • Operating system: Linux fedora 39
  • Target hardware: SenseCAP indicator

The List widget is not there in the SquareLine Studio widget selector. The reason behind this is that it’s a pre-written special LVGL widget which affects its customizability (styling, included images/texts, etc). Usually the designers create a component in SquareLine studio that represents a single list-element, and make a list from its instances within a suitable (Flex) layout. You can see some customized lists like this in SquariLine Studio examples, like e.g. certain pages of 3D-printer-2 demo.

Thank you for your answer. As you proposed I’ve used a “Container” widget with a Flex layout and it does the trick.

1 Like