Is it possible to align or set position of a screen? I am designing a UI which consist of a status-bar on the top, and it should be visible on all screens. So I wanted to keep it fixed, and declare everything else on different screens. That is why in the below code i have set the height of a 240x240 screen to 240-20. But then I have to align it. I have tried to set the position as below but it has no effect.
Is there any way to achieve that?
main_menu_scr = lv_obj_create(NULL, NULL); lv_obj_set_size(main_menu_scr, 240, 240-20); lv_obj_set_pos(main_menu_scr, 0, 20);