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?
Thanks for your reply. I have realized it after experimenting a bit.
So, can you suggest me how can i achieve the above requirement?
I think I should go with tab_view, will remove the header (is it possible?) but I am not sure.
There are 2 speciallayers in lvgl: Top and sys layers that are always drawn on top of the active screen. The lv_layer_top() and lv_layer_sys() functions gives a pointer to the top or system layer.
Add your status-bar as a child of the top layer to display that object on all screens: