Android Question Changing SlidingPanels to SlidingScrollviews

TestMyChess

Member
Licensed User
Longtime User
Hi,

I did a find&replace of "panel" to "scrollview" in the SlidingPanels project, renamed SlidingPanels.bas to SlidingScrollviews.bas, and changed panels(i).AddView to scrollviews(i).Panel.AddView.

The other change I needed was to change
panels(i).Initialize("panels")
to
scrollviews(i).Initialize(0)

My question is - how am I meant to know that panel.Initialize() takes a string parameter but scrollview.Initialize() takes a numeric parameter. I haven't been able to find this in the documentation, and although I got there by guesswork that doesn't seem very satisfactory.

The whole Initialize thing is a bit of a mystery to me. Is there an explanation anywhere of what it is doing and why it is required.

Thanks

John
 

TestMyChess

Member
Licensed User
Longtime User
Thanks. I'm not sure I ever got far enough down the main documentation page (past Tutorials and examples, past Libraries), to realise that the Types section includes all of the main views.

John
 
Upvote 0
Top