One more question, I want to set a button and a list in a tab, I just want the list to slide, but the problem I’m currently having is but when I slide the list, the button will slide with it, how should I fix this problem? Thanks!
OK, now we should know that the TabView having its own container child inside, that need to be set flag manually to LV_OBJ_FLAG_SCROLLABLE, not the TabView itself.
I am curious about what more this container can do. I didn’t see anything of this in the manual. LVGL biggest hurdle is, for me, the documentation. However, I like the library a lot.
Hello, if I recall correctly “container” is a name used in Squareline Studio (LVGL editor) and it is basically just an empty base object in which child objects can be placed.
Visually speaking, this creates a sort of container or panel in which other objects (widgets, etc.) can be placed by making them children of this “container” object.
Anyway, as I mentioned the Tabview having its own container child inside, that need to apply it own LV_OBJ_FLAG_SCROLLABLE flag, if you Ernst want to know how this “container” can do, please look at the structure mentioned on top of the documentation: https://docs.lvgl.io/8.3/widgets/extra/tabview.html?highlight=tabview
Tabview (lv_tabview)
Overview
The Tab view object can be used to organize content in tabs. The Tab view is built from other widgets:
Thank you for the link to the documentation @tpt.
Of course I’ve read this carefully. It is for a new LVGL user very difficult to discover what part of the tabView constellation is responsible for the scrolling. The flag LV_OBJ_FLAG_SCROLLABLE cannot be found on this page. This leads to uncertainties, are there any other flags introducing unexpected behaviour?