How to unload Layout from scrollview ?

Gary Miyakawa

Active Member
Licensed User
Longtime User
Hey folks,

I'm running into an issue around loading multiple layouts.

The application is, basically, replacement for a few physical remote controls. I've used designer to build the layout for each remote control.

My code basically loads a "main" layout that just has the scrollview view in it. Then I use scrollview1.panel.loadlayout("xxxxx") to load the appropriate remote control "face".

I've got the code working and switching (for a while). the problem is, after 6-8 switches, the application begins running very slowly.

I believe problem is the previous panel is still taking up resources but I can't figure out how to "release/remove" those resources from being used.

I have gone so far as to add scrollview1.panel.removeallview but that didn't seem to help

Open to any and all suggestions..

Cheers,

Gary M
 
Ok, after a bit more playing, using the "Scrollview1.panel.RemoveAllViews" appears to clean things up for me...

Hope that helps someone down the line!

Gary M
 
Upvote 0
Back
Top