如图 我觉得tab 1 2 3 三个按钮太大了 想改它们的高度 如何改
lv_obj_t * obj = lv_tabview_create(scr, NULL);
lv_obj_set_size(obj, 197, 231);
lv_obj_t * t1 = lv_tabview_add_tab(obj, "Tab 1");
lv_obj_t * t2 = lv_tabview_add_tab(obj, "Tab 2");
//lv_obj_set_size(t1, 20,20);
//lv_obj_set_event_cb(obj, general_event_handler);
lv_obj_t * label = lv_label_create(t1, NULL);
lv_label_set_text(label, "This the first tab");
label = lv_label_create(t2, NULL);
lv_label_set_text(label, "Second tab");
按道理应该是lv_obj_set_size(t1, 20,20); 但是没有用
离线