Ok, brand new user - just purchased + installed on Friday.
(a very impressive product by the way). Dropped in a few buttons, tested some code! - it all worked.
Then dropped in a progress bar - guessed that sleep() would work and it did. This product does a very nice job of "leveraging" the Android UI.
(really, very amazing so far). A few code snips later, and I have SQLite working on a test database.
Ok, so my question is kind of the "zen" of B4A.
If I have just loaded my main view - (a few buttons with a simple MsgBox("Hello", "My first button!)
Now, if I want a button to launch + load another view (layout), I would likely hide the current view/layout.
Do I (or should I) setup some kind of page?
Can I just launch another layout, hide previous. do my stuff, and then return to previous
(this is the basic "design" approach my brain is wired up with - open to having to change my approach).
I just tested this,
eg:
Activity.LoadLayout("MyEdit")
and of course this layout does load, and display. It of course renders on top of the existing layout.
So, can I hide the first "main" layout? (or should I introduce some kind of page object?
I guess the question is somewhat navigation in applications.
I am open to "don't do things" this way.
But, just looking for a quick tip as to how one will click on a button, and jump to the next form/layout in a typical application.
So, do I (or should I) try and set the current layout to Visible = false, launch next layout. And when done to return, hide current, and show previous?
One can argue that this UI means the 2nd form is "modal" in nature - but at this point, the goal is not really model but a simple jump to a form/layout, and then returing to previous
Regards,
Albert D. Kallal
Edmonton, Alberta, Canada
(a very impressive product by the way). Dropped in a few buttons, tested some code! - it all worked.
Then dropped in a progress bar - guessed that sleep() would work and it did. This product does a very nice job of "leveraging" the Android UI.
(really, very amazing so far). A few code snips later, and I have SQLite working on a test database.
Ok, so my question is kind of the "zen" of B4A.
If I have just loaded my main view - (a few buttons with a simple MsgBox("Hello", "My first button!)
Now, if I want a button to launch + load another view (layout), I would likely hide the current view/layout.
Do I (or should I) setup some kind of page?
Can I just launch another layout, hide previous. do my stuff, and then return to previous
(this is the basic "design" approach my brain is wired up with - open to having to change my approach).
I just tested this,
eg:
Activity.LoadLayout("MyEdit")
and of course this layout does load, and display. It of course renders on top of the existing layout.
So, can I hide the first "main" layout? (or should I introduce some kind of page object?
I guess the question is somewhat navigation in applications.
I am open to "don't do things" this way.
But, just looking for a quick tip as to how one will click on a button, and jump to the next form/layout in a typical application.
So, do I (or should I) try and set the current layout to Visible = false, launch next layout. And when done to return, hide current, and show previous?
One can argue that this UI means the 2nd form is "modal" in nature - but at this point, the goal is not really model but a simple jump to a form/layout, and then returing to previous
Regards,
Albert D. Kallal
Edmonton, Alberta, Canada