Add a new page to the pager layout at the specified position. Normally you will provide a Panel here. View - The view to be added as a new page Title - The title of the new page Position - Position where the new page will be added
CountAsInt [read only]
Gets the number of pages in the layout.
Deletes the specified page. Position - Page to be deleted
GetPageObject (PositionAsInt) AsObject
Returns the View added as a page. Normally this is a Panel object. Position - Index of the object
This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
PageChanged (Position As Int) PageScrollStateChanged (State as Int) PageScrolled (Position As Int, PositionOffset as Float, PositionOffsetPixels as Int) PageCreated (Position As Int, Page as Object) PageDestroyed (Position As Int, Page as Object)
Set the number of pages that should be retained to either side of the current page in the view hierarchy in an idle state. Pages beyond this limit will be recreated from the adapter when needed.
This is offered as an optimization. If you know in advance the number of pages you will need to support or have lazy-loading mechanisms in place on your pages, tweaking this setting can have benefits in perceived smoothness of paging animations and interaction. If you have a small number of pages (3-4) that you can keep active all at once, less time will be spent in layout for newly created view subtrees as the user pages back and forth.
You should keep this limit low, especially if your pages have complex layouts. This setting defaults to 1.