@@ -28,7 +28,7 @@ void lv_example_flex_1(void)
|
|||||||
lv_obj_set_size(obj, 100, LV_PCT(100));
|
lv_obj_set_size(obj, 100, LV_PCT(100));
|
||||||
|
|
||||||
label = lv_label_create(obj);
|
label = lv_label_create(obj);
|
||||||
lv_label_set_text_fmt(label, "Item: %u", i);
|
lv_label_set_text_fmt(label, "Item: %"LV_PRIu32, i);
|
||||||
lv_obj_center(label);
|
lv_obj_center(label);
|
||||||
|
|
||||||
/*Add items to the column*/
|
/*Add items to the column*/
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ static void float_btn_event_cb(lv_event_t * e)
|
|||||||
|
|
||||||
cont = lv_menu_cont_create(sub_page);
|
cont = lv_menu_cont_create(sub_page);
|
||||||
label = lv_label_create(cont);
|
label = lv_label_create(cont);
|
||||||
lv_label_set_text_fmt(label, "Hello, I am hiding inside %i", btn_cnt);
|
lv_label_set_text_fmt(label, "Hello, I am hiding inside %"LV_PRIu32, btn_cnt);
|
||||||
|
|
||||||
cont = lv_menu_cont_create(main_page);
|
cont = lv_menu_cont_create(main_page);
|
||||||
label = lv_label_create(cont);
|
label = lv_label_create(cont);
|
||||||
lv_label_set_text_fmt(label, "Item %i", btn_cnt);
|
lv_label_set_text_fmt(label, "Item %"LV_PRIu32, btn_cnt);
|
||||||
lv_menu_set_load_page_event(menu, cont, sub_page);
|
lv_menu_set_load_page_event(menu, cont, sub_page);
|
||||||
|
|
||||||
lv_obj_scroll_to_view_recursive(cont, LV_ANIM_ON);
|
lv_obj_scroll_to_view_recursive(cont, LV_ANIM_ON);
|
||||||
|
|||||||
Reference in New Issue
Block a user