Various screens vs various containers
Hello,
If various elements of the GUI I'm working on are going to be shared amongst most of the screens (footer, header, status bar,…), do you think it's a good idea to use a single TouchGFX screen and to change only the central content by means of containers?
Therefore, I'd have to create various containers, say container_screen1, container_screen2,... and swap from one to another like this:
container_centralZone.add(container_screen1);
/* after an action*/
container_centralZone.remove(container_screen1);
container_centralZone.add(container_screen2);
However, as we want to use as little heap as possible in the project I'm currently working on, the problem of this solution is that all containers must be created statically upon the creation of the TouchGFX main screen…
None of the two solutions (screens vs containers) are perfect, but I'm currently leaning towards using the containers one and I'd like to hear your opinion on this to make a sound decision.
Thanks in advance
