iOS Question xCustomListView Layout Not Loaded Completely

jahswant

Well-Known Member
Licensed User
Longtime User
My xCustomListView Won't Layout Completely. It Stops Loading At the visible Range And won't load all layout.
 

Attachments

  • TestScrollView.zip
    15.6 KB · Views: 152

Erel

B4X founder
Staff member
Licensed User
Longtime User
Your layout is wrong. You are not using anchors correctly.

You should watch the visual designer tutorial:
The mail panel in your layout should be anchored to the top and left and you should load it like this:
B4X:
Private Sub Application_Start (Nav As NavigationController)
   NavControl = Nav
   Page1.Initialize("Page1")
   Page1.Title = "Page 1"
   Page1.RootPanel.LoadLayout("mainreports")
   Page1.RootPanel.Color = Colors.White
   NavControl.ShowPage(Page1)
   Dim p As B4XView = Xui.CreatePanel("")
   p.SetLayoutAnimated (0, 0, 0, 960dip, 2216dip)
   p.LoadLayout("reports")
   ScrollViewMain.Add(p, "")
End Sub

Private Sub Page1_Resize(Width As Int, Height As Int)
End Sub

For this to work properly you need to fix the reports layout. Don't use %y at all. Start with removing all the designer script code.
 
Upvote 0

jahswant

Well-Known Member
Licensed User
Longtime User
Are designer Scripts no more relevant ? Because i use it nearly every where and it works.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…