Best practice to make a multi screen application

Description

Hi…

If I’d like use lot of screens and all of them has more objects, then need create diferent objects on every screen.
When closing a screen need to delete object, and so on …
I’d to create a stru for every screens, that holds objects.
After init I don’t want to delete them to prevent fregmantatoin.
But I cant find function to disable or hide objects.
How is best methode to change used object in a current screen from initialized struct of object.

May be put all objects into container and call set_hidden of container?
What about the overhead and speed that cause the above methode?

Can I find a similar sample project ?
Thanks…

What MCU/Processor/Board and compiler are you using?

Simulator at the moment…later ST32Fxxx and ESP32

What do you want to achieve?

Experince with lvgl… :slight_smile:

What have you tried so far?

Lot of things…:grinning:

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

It’s explained in the documentation here.

1 Like

Updated link to documentation: https://docs.lvgl.io/8.3/overview/object.html#attributes