Hi all,
I'm very new to B4A so after reading some threads about subjects near to what I'd like to accomplish I invariantly end with a question like the one above: which is the "best" approach?
My app should start showing a welcome screen with a couple of main options; for this I use a panel as big as the whole activity space and three more panels inside the first one, each dedicated to a specific option.
Now, when the user touches on panel_A the app hides its main panel and shows pnlOptionA (not to say, itself littered with a few specific panels..). The same for option B. Using the back button or touching any element on a "secondary panel" the app response is just to hide that panel and to show its main panel again.
So far so good. It all works as expected.
My question arises when using the Designer to create/set all those panels: to be honest, it's a really mess!
I like the Designer (over coding each element) for its immediacy and its script function useful for easily adapt any layout to multiple screen sizes/res.
So, what should I do? Create a separate layout for each OptionX panel and load it in response to user events or stay with the hide/show strategy used so far?
TIA
I'm very new to B4A so after reading some threads about subjects near to what I'd like to accomplish I invariantly end with a question like the one above: which is the "best" approach?
My app should start showing a welcome screen with a couple of main options; for this I use a panel as big as the whole activity space and three more panels inside the first one, each dedicated to a specific option.
Now, when the user touches on panel_A the app hides its main panel and shows pnlOptionA (not to say, itself littered with a few specific panels..). The same for option B. Using the back button or touching any element on a "secondary panel" the app response is just to hide that panel and to show its main panel again.
So far so good. It all works as expected.
My question arises when using the Designer to create/set all those panels: to be honest, it's a really mess!
I like the Designer (over coding each element) for its immediacy and its script function useful for easily adapt any layout to multiple screen sizes/res.
So, what should I do? Create a separate layout for each OptionX panel and load it in response to user events or stay with the hide/show strategy used so far?
TIA