I am building a UI with two screens, each full width and height. I want the UI to allow the user to swipe horizontally between the two screens (kind of like swiping between two screens on your phone)
What MCU/Processor/Board and compiler are you using?
PC simulator
What do you want to achieve?
Allow swiping, including on the children of the tabs
What have you tried so far?
Create tabview, add 2 tabs, remove buttons. Cannot swipe from the tabs, only from the padding around the tabs.
I think the padding needs to be changed on the tabs themselves, not the tabview’s background.
lv_obj_t *tab1 = lv_tabview_add_tab(tabview, "Tab 1");
/* I think only one of these may be necessary but I can't test it at the moment. */
lv_obj_set_style_local_pad_top(tab1, LV_PAGE_PART_BG, 0);
lv_obj_set_style_local_pad_top(tab1, LV_PAGE_PART_SCRL, 0);