Wish b4a 5.00 - classify layouts based on activity

Discussion in 'Bugs & wishlist' started by ArminKH, Jun 2, 2015.

  1. ArminKH

    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
     
  2. klaus

    klaus Expert Licensed 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.
     
    NJDude, ArminKH and Erel like this.
  3. ArminKH

    ArminKH Well-Known Member

    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
     
  4. klaus

    klaus Expert Licensed User

    Sorry, but I don't understand.
    In the Designer in the File menu you find all Layout files.
     
    ArminKH and NJDude like this.
  5. qsrtech

    qsrtech Active Member Licensed 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 likes this.
  6. ArminKH

    ArminKH Well-Known Member

    my purpose is this
    Classsify.png
    excuse me 4 my english :(
     
  7. klaus

    klaus Expert Licensed User

    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.
     
    NJDude and ArminKH like this.
  8. ArminKH

    ArminKH Well-Known Member

    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
     
  9. klaus

    klaus Expert Licensed User

    Sorry, still not convinced.
     
    NJDude and ArminKH like this.
  10. ArminKH

    ArminKH Well-Known Member

    Classsify.png

    please dont tell still not convinced pleaseeeeee :(
     
  11. klaus

    klaus Expert Licensed 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 and NJDude like this.
  12. ArminKH

    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
     
  13. klaus

    klaus Expert Licensed User

    It's also only my opinion.
     
    ArminKH likes this.
  14. ArminKH

    ArminKH Well-Known Member

    In our language we tell "بیخیالش" = forget this ;-)
     
Loading...