![image.png](/uploads/projects/icheima@vzsofu/eea5c9abb46faab21d34e8d8c3126bd3.png)
void demo12(){
lv_obj_t * tabview;
tabview = lv_tabview_create(lv_scr_act(), LV_DIR_TOP, 50);
/*Add 3 tabs (the tabs are page (lv_page) and can be scrolled*/
lv_obj_t * tab1 = lv_tabview_add_tab(tabview, "Tab 1");
lv_obj_t * tab2 = lv_tabview_add_tab(tabview, "Tab 2");
lv_obj_t * tab3 = lv_tabview_add_tab(tabview, "Tab 3");
lv_obj_t* label1 = lv_label_create(tab1);
lv_label_set_text(label1,"page1");
lv_obj_t* label2 = lv_label_create(tab2);
lv_label_set_text(label2,"page2");
lv_obj_t* label3 = lv_label_create(tab3);
lv_label_set_text(label3,"page3");
}