There are two height parameters relevant to a scrollview, the height in the layout defined by Scrollview1.height, and the inner panel height defined by Scrollview1.panel.height (and also both are in the designer).
You have the inner height set to 500 in the designer (inner height), so for the Scrollview to scroll, the scrollview's height on the layout would need to be smaller than 500, otherwise it is all visible anyway.
Sub Globals
Panel1 As CustomListView
End Sub
Activity_Create(FirstTime As Boolean)
Panel1.Initialize(Me, "Pnl")
Panel1.AddView(Panel1.AsView, 0, 0, Panel1.Width, Panel1.Height)
End Sub
Sub Globals
Panel1 As CustomListView
End Sub
Activity_Create(FirstTime As Boolean)
Panel1.Initialize(Me, "Pnl") 'the event name is "Pnl"
Panel1.AddView(Pnl.AsView, 0, 0, Panel1.Width, Panel1.Height) 'so the view should be llike this
End Sub
You have declared Panel1 as a CustomListView and are using it as such, but you are also trying to call a Panel method (addview) which doesn't exist on CutomListView.
Check your code against Erel's original, you need a CustomListView and a Panel.