iOS Question [SOLVED] Moving views after loading them with LoadLayout

wimpie3

Well-Known Member
Licensed User
Longtime User
I seem to have a timing issue with views loaded through LoadLayout. I have a Designer file with one xCustomListView on it.

When I do this:
B4X:
Root.LoadLayout("MainPage")
ListView.AsView.Height = 100%y
ListView.AsView.Width = 100%x
ListView.AsView.left = 0
ListView.AsView.top = 0
ListView.Base_Resize(100%x,100%y)
my listview does not take up the entire space. However, when I execute the resize code on a button press, things seem to work fine. Do I need to put a sleep after the layout is loaded?
 

wimpie3

Well-Known Member
Licensed User
Longtime User
Answering my own question... the solution seems to be to uncheck the "handle resize event" option.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…