Android Programming Press on the image to return to the main documentation page.

SlidingPanels

Written by Giancarlo "Dominex" Fioretti

List of types:

JumpData
MovesPanel
SlidingPanels
TouchData

JumpData


Events:

None

Members:


  Delay As Int

  Initialize

  IsInitialized As Boolean

  Panel As Int

  Speed As Int

Members description:

Delay As Int
Initialize
Initializes the fields to their default value.
IsInitialized As Boolean
Tests whether the object has been initialized.
Panel As Int
Speed As Int

MovesPanel


Events:

None

Members:


  Destination As Int

  Increase As Float

  Initialize

  IsInitialized As Boolean

  PanelNumber As Int

  Start As Float

Members description:

Destination As Int
Increase As Float
Initialize
Initializes the fields to their default value.
IsInitialized As Boolean
Tests whether the object has been initialized.
PanelNumber As Int
Start As Float

SlidingPanels


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

Click
LongClick
Change

Members:


  GetCurrentPanel As String

  GetSlidingInProgress As String

  Initialize (EventName As String, Speed As Int, Parent As PanelWrapper, Module As Object, ActivityTouch As Boolean) As String

  IsInitialized As Boolean

  JumpToPanel (PanelNumber As Int, Speed As Int, Delay As Int) As Boolean

  ModeFullScreen (NumberOfPanels As Int, SlidingInLoop As Boolean) As String

  ModeLittlePanels (NumberOfPanels As Int, Width As Int, Height As Int, Ypos As Int, Distance As Int, Friction As Boolean) As String

  ModeLittlePanelsZoom (NumberOfPanels As Int, Width As Int, Height As Int, Ypos As Int, Distance As Int, Friction As Boolean, Zoom As Int, ZoomArea As Int) As String

  Panels() As PanelWrapper

  Panels_Touch (Action As Int, X As Float, Y As Float) As String

  SetSpeedScroll (Speed As Int) As String

  Start (PanelNumber As Int) As String

Members description:

GetCurrentPanel As String
Returns the number of the current Panel.
GetSlidingInProgress As String
Return if the SlidingPaneles is in progress.
Initialize (EventName As String, Speed As Int, Parent As PanelWrapper, Module As Object, ActivityTouch As Boolean) As String
Initialize the SlidingPanels.
EventName - name of the event Click and Change.
Speed - is the sliding speed in milliseconds.
Horizontal - if it is True means horizontal scrolling, vertical otherwise.
Parent - where is the Activity create the SlidingPanels.
Module - must be "Me"
ActivityTouch - if True use the event Touch the Activity rather than the individual Panels. [Recommended]

If ActivityTouch if True, adds this code in Main Activity:
Sub Activity_Touch (Action As Int, X As Float, Y As Float)
  SD.Panels_Touch(Action,X,Y)
End Sub
IsInitialized As Boolean
Tests whether the object has been initialized.
JumpToPanel (PanelNumber As Int, Speed As Int, Delay As Int) As Boolean
Runs the SlidingPanels up to a specific Panel.
Return False if it is already in the Panel indicated.
PanelNumber - number of panels to jump to.
Speed - is the sliding speed in milliseconds.
Delay - delay before the next jump.
ModeFullScreen (NumberOfPanels As Int, SlidingInLoop As Boolean) As String
Creates the SlidingPanels with Panels full screen.
The Class must first be initialized.
NumberOfPanels - is the number of panels to be created, Min 2.
SlidingInLoop - indicates whether the SlidingPanels is in Loop (True = Loop).
ModeLittlePanels (NumberOfPanels As Int, Width As Int, Height As Int, Ypos As Int, Distance As Int, Friction As Boolean) As String
Creates the SlidingPanels with smaller panels of the screen.
The Class must first be initialized.
NumberOfPanels - is the number of panels to be created, Min 2.
Width - width of the panels.
Height - height of the panels.
Ypost - vertical central position of the panels.
Distance - is the distance separating the panels.
Friction - enable/disable the friction.
ModeLittlePanelsZoom (NumberOfPanels As Int, Width As Int, Height As Int, Ypos As Int, Distance As Int, Friction As Boolean, Zoom As Int, ZoomArea As Int) As String
Creates the SlidingPanels with smaller panels of the screen with zoom.
The Class must first be initialized.
NumberOfPanels - is the number of panels to be created, Min 2.
Width - width of the panels.
Height - height of the panels.
Ypost - vertical central position of the panels.
Distance - is the distance separating the panels.
Friction - enable/disable the friction.
Zoom - set the zoom (150 = 150%).
ZoomArea - area in which it calculates the zoom.
Panels() As PanelWrapper
Panels_Touch (Action As Int, X As Float, Y As Float) As String
SetSpeedScroll (Speed As Int) As String
Sets the speed of sliding.
Speed - speed in milliseconds.
Start (PanelNumber As Int) As String
Start the SlidingPanels showing Panels indicated.
The Class must first be initialized, and choosing a mode of SlidingPanels.
PanelNumber - number of panels to start.

TouchData


Events:

None

Members:


  Initialize

  IsInitialized As Boolean

  Tag As Object

  X As Int

  Y As Int

Members description:

Initialize
Initializes the fields to their default value.
IsInitialized As Boolean
Tests whether the object has been initialized.
Tag As Object
X As Int
Y As Int

Top