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

StdActionBar

List of types:

StdActionBar
StdTab
StdViewPager

StdActionBar


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

Events:

ListItemSelected (Index As Int, Value As String)
TabChanged(Index As Int, STab As StdTab)
ButtonClicked

Members:


  AddTab (Text As String) As StdTab

  Icon As android.graphics.Bitmap [write only]

  Initialize (EventName As String)

  NAVIGATION_MODE_LIST As Int

  NAVIGATION_MODE_STANDARD As Int

  NAVIGATION_MODE_TABS As Int

  NavigationMode As Int

  RemoveTabs

  SelectedIndex As Int

  SelectedTab As StdTab [read only]

  SetListItems (Items As List)

  ShowUpIndicator As Boolean [write only]

  Subtitle As String

Members description:

AddTab (Text As String) As StdTab
Adds a new tab. Returns a StdTab object.
Icon As android.graphics.Bitmap [write only]
Sets the action bar icon.
Initialize (EventName As String)
Initializes the bar and sets the subs that will handle the events.
NAVIGATION_MODE_LIST As Int
NAVIGATION_MODE_STANDARD As Int
NAVIGATION_MODE_TABS As Int
NavigationMode As Int
Gets or sets the navigation mode. The navigation mode should be one of the NAVIGATION constants.
RemoveTabs
Removes the tabs.
SelectedIndex As Int
Gets or sets the index of the selected item. This will be the index of the selected tab in tab mode or the index of the selected list item in list mode.
SelectedTab As StdTab [read only]
Gets the selected tab.
SetListItems (Items As List)
Sets the dropdown list items. The list will only be visible when the navigation mode is set to NAVIGATION_MODE_LIST.
ShowUpIndicator As Boolean [write only]
If true then the up indicator (left arrow icon) will appear next to the bar icon.
Subtitle As String
Gets or sets the subtitle.

StdTab


Events:

None

Members:


  Icon As android.graphics.drawable.Drawable

  IsInitialized As Boolean

  Position As Int [read only]

  Tag As Object

  Text As String

Members description:

Icon As android.graphics.drawable.Drawable
Gets or sets the tab's icon.
IsInitialized As Boolean
Position As Int [read only]
Gets the tab position (index).
Tag As Object
Text As String
Gets or sets the tab's text.

StdViewPager


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

Events:

PageSelected (Position As Int)

Members:


  AsView As ConcreteViewWrapper

  CurrentPage As Int [read only]

  Initialize (EventName As String, NumberOfPages As Int, PageWidth As Int, PageHeight As Int)

  Panels() As PanelWrapper

  ScrollTo (PagePosition As Int, SmoothScroll As Boolean)

Members description:

AsView As ConcreteViewWrapper
Returns the ViewPager native view.
CurrentPage As Int [read only]
Gets the currect page position.
Initialize (EventName As String, NumberOfPages As Int, PageWidth As Int, PageHeight As Int)
Initializes the view and sets the number of pages.
PageWidth and PageHeight define the pages dimensions.
Panels() As PanelWrapper
Array of panels. Each panel represents a page.
ScrollTo (PagePosition As Int, SmoothScroll As Boolean)
Scrolls the pager to the specified page.
Top