Wish Add LoadLayout method on Designer Script

James Chamblin

Active Member
Licensed User
Longtime User
I actually could've used something like this in a project. Something where I could create a layout "b". On layout "a", place a "layout view" that points to "b". In Activity_Create(), When I do Activity,LoadLayout("a"), it would automatically load layout "b" within the layout view of "a".

I ended up just putting panels on "a" where I wanted "b" loaded and load it during Activity_Create(). Something like the example attached.
 

Attachments

  • LoadLayoutInPanels.zip
    8.2 KB · Views: 180

Mashiane

Expert
Licensed User
Longtime User
Hi James

I'm currently doing it like that too, but the issue is that I'm using the same panels with same controls for different screens, so I create a layout, add a panel and its controls then copy that panel to another layout and delete it from the original. My app has multiple pages sliding left and right...
 
Top