Ok - Well i'm truly lost... I'm so used to a MVC concept and the idea that the layout files are bound to the Activities is just bugging me...
I like the B4XDrawer as its supposed to be iOS compatible - and if the app makes it that far it will be on both Android and iOS...
But i'm still not getting to the point where i can have a working empty framework .
Simple layout idea is
Login page - Single Activity + Layout
Main / Dashboard - This is an Activity with the side menu.
All Other pages need to be Activities + Layout - BUT with the Menu as well
BUT i don;t want to have to code the menu on every page - i Want to just include it as a class and have the button click correspond to the code in the CLASS.
Seen i can only have ONE Activity running at a time..
How is this possible - I'm sure i must be missing something... but at the moment its really looking a step backwards from my current language sets
There is only a minor misunderstanding on your part. You almost got it
.
Think of the Activities as you would a WebPage in ASP or PHP. Each webpage page has a display component and processing components i.e. A picture and functions.
You then add elements programmatically to each webpage page. So you programmatically add a menu, header footer, content area etc... You obviously define the menu in a single place and then add it to each web page as required.
That is the basic concept of a B4x and in fact Android Activities.
So to answer your question:
Login page - Single Activity + Layout
Main Activity - Kicks off the other activities
All Other pages need to be Activities + Layout - BUT with the Menu as well
Layout - Menu which is added to each activity programmatically.
I found that once I actually started working with B4A a lot of the confusion was resolved, in terms of how to architect the application. So my suggested path forward is as follows:
1. If you have not done so yet, go through Erel's excellent video tutorials:
https://www.b4x.com/etp.html
2. Visit this thread:
https://www.b4x.com/android/forum/threads/b4x-b4xdrawer-sliding-drawer.97828/
Look at the code and go through the examples.
3. Create the above proposed layout. With a couple of dummy pages. Play with different views and layouts to get a feel for how everything works together. Program a few buttons.
4. Create a mini fun project, nothing too serious. But something that forces you to use the different views, activities, layouts etc...
5. Post the dummy project when done for crit.
I think that way you will develop the intuitive feel you need, before architecting your major app. You will make the learning mistakes early on, so you avoid them when it really counts.
How does that approach sound to you?