Wish b4a 5.00 - classify layouts based on activity

ArminKH

Well-Known Member
Hi @Erel
Is possible to classify layouts based on activity on next update?
Some time me(and many others) use too much layouts on my app and create them on designer
Thats better if we can classify layouts(similar to parents for each view)
For example the parent of layout1,layout2,layout3 is activity main
And layout4,5,6 is for activity2
Thank u
 

klaus

Expert
Licensed User
Longtime User
Layouts are not connected to a given Activity nor any parent view.
You can load the same layout to different Activites.
Give the layouts significant names then you know what they are for, you could even add a 'code' to the names to know to which Activity you load them.
 

ArminKH

Well-Known Member
Layouts are not connected to a given Activity nor any parent view.
You can load the same layout to different Activites.
Give the layouts significant names then you know what they are for, you could even add a 'code' to the names to know to which Activity you load them.
I know this,but for example when we have 30 layout then we should scroll layout's list on designer for select one of them
Thats better if be any way similar to a tree check
Thank u
 

qsrtech

Active Member
Licensed User
Longtime User
I understand what you're looking for. Perhaps in the meantime maybe you can use constants in your activity, ie. Layout1="main", layout2="signin", etc and when you're coding you can type dot Lay... and it will list all the available layouts for that particular activity.
 

ArminKH

Well-Known Member
Sorry, but I don't understand.
In the Designer in the File menu you find all Layout files.
my purpose is this
Classsify.png

excuse me 4 my english :(
 

ArminKH

Well-Known Member
I am really not convinced with this.
What is Group1 ? A new upper layer above layout files ?
For me this will complicate the management of layout files.
But, of course that's just my opinion.
Yes
For example we have group1,group2 and each group has 2 layout and each layout can have any views
My purepose is for access to layouts directly from an area like this,and not from File menu
 

klaus

Expert
Licensed User
Longtime User
Well, I have never worked with more than 22 layout files in the same project. Having given them meaningful names I had'nt any trouble.
What disturbs me is having an upper layer with no concrete meaning other than only file management.
 

ArminKH

Well-Known Member
Ok,this is just a suggestion and maybe is just my problem,my problem is classify when layouts are too much
But if you think this is unnecceasary ok thank u
 
Top