wimpie3 Well-Known Member Licensed User Longtime User Mar 12, 2022 #1 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?
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 Mar 12, 2022 #2 Answering my own question... the solution seems to be to uncheck the "handle resize event" option. Upvote 0