Want to delete the border padding of the page in tabView, so that there is no gap between cont and TabView in the page, but the processing has no effect, as follows:
lv_style_init(&style);
lv_style_set_pad_top(&style, LV_STATE_DEFAULT,0);
lv_style_set_pad_left(&style, LV_STATE_DEFAULT,0);
lv_style_set_pad_right(&style, LV_STATE_DEFAULT,0);
lv_style_set_pad_bottom(&style, LV_STATE_DEFAULT, 0);
lv_style_set_margin_top(&style, LV_STATE_DEFAULT, 0);
lv_style_set_margin_left(&style, LV_STATE_DEFAULT, 0);
lv_style_set_margin_right(&style, LV_STATE_DEFAULT, 0);
lv_style_set_margin_bottom(&style, LV_STATE_DEFAULT, 0);
lv_style_set_pad_inner(&style, LV_STATE_DEFAULT, 0);
top_tb = lv_tabview_create(lv_scr_act(), NULL);
main_tb = lv_tabview_add_tab(top_tb, “Controls”);
lv_obj_add_style(main_tb, LV_OBJ_PART_MAIN, &style);
The following code should remove padding on all the nested containers in the tabview.
lv_obj_add_style(top_tb, LV_TABVIEW_PART_BG, &style);
lv_obj_add_style(top_tb, LV_TABVIEW_PART_BG_SCRL, &style);
lv_obj_add_style(main_tb, LV_PAGE_PART_MAIN, &style);