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

StdActionBarHelper

Written by Markus Stipp

List of types:

ActionMode
Menu
MenuItem
PopupMenu
StdActionBarHelper

ActionMode


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

Events:

ItemClicked (Item As MenuItem)
Created (Menu as Menu)
Prepared (Menu as Menu)
Closed

Members:


  Finish

  Initialize (EventName As String)

  Start

  SubTitle As String

  Tag As Object

  Title As String

Members description:

Finish
End the ActionMode and close the contextual ActionBar
Initialize (EventName As String)
Initialize the ActionMode object

EventName: Name for the Events
Start
Start the ActionMode
SubTitle As String
Sets of gets the SubTitle
Tag As Object
Set or get the Tag Object
Title As String
Sets or gets the Title

Menu


Events:

None

Members:


  Add (ItemId As Int, Title As String, Icon As android.graphics.drawable.Drawable) As MenuItem

  Clear

  Close

  FindItem (ItemId As Int) As MenuItem

  GetItem (Index As Int) As MenuItem

  IsInitialized As Boolean

  RemoveItem (ItemId As Int)

  Size As Int

Members description:

Add (ItemId As Int, Title As String, Icon As android.graphics.drawable.Drawable) As MenuItem
Add a menu item to the menu

ItemId : Id for the item
Title : Title for the item
Icon : Drawable that is used as an icon. Pass null for no icon.
Clear
Clears all menu items from the menu.
Close
Close the menu if it is open.
FindItem (ItemId As Int) As MenuItem
returns the item with the given Id. Returns null if the item cannot be found.

ItemId : Id of the item to be searched for.
GetItem (Index As Int) As MenuItem
returns the item with the given index.
IsInitialized As Boolean
RemoveItem (ItemId As Int)
Remove Item from menu

ItemId : item to be removed
Size As Int
Returns the number of items in the menu

MenuItem


Events:

None

Members:


  Checkable As Boolean

  Checked As Boolean

  Enabled As Boolean

  Icon As android.graphics.drawable.Drawable

  Id As Int [read only]

  IsInitialized As Boolean

  Title As String

  Visible As Boolean

Members description:

Checkable As Boolean
Make the item checkable
Checked As Boolean
Check the item
Enabled As Boolean
Enable/disable the item
Icon As android.graphics.drawable.Drawable
Sets or gets the Icon for the menu item.

Icon : Icon drawable
Id As Int [read only]
Gets the item id
IsInitialized As Boolean
Title As String
Sets/gets the title of the menu
Visible As Boolean
Show/hide the item

PopupMenu


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

Events:

ItemClicked (Item As MenuItem)
Closed

Members:


  AddMenuItem (ItemId As Int, Title As CharSequence, Icon As android.graphics.drawable.Drawable) As MenuItem

  Close

  GetItem (ItemId As Int) As android.view.MenuItem

  GetMenu As Menu

  Initialize (EventName As String, view As android.view.View)

  RemoveMenuItem (ItemId As Int)

  Show

Members description:

AddMenuItem (ItemId As Int, Title As CharSequence, Icon As android.graphics.drawable.Drawable) As MenuItem
Close
Close the Popup menu
GetItem (ItemId As Int) As android.view.MenuItem
GetMenu As Menu
Gets the menu object
Initialize (EventName As String, view As android.view.View)
RemoveMenuItem (ItemId As Int)
Show
Show the popup menu.

StdActionBarHelper


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

Events:

None

Members:


  Hide

  HomeButtonEnabled As Boolean [write only]

  HomeVisible As Boolean [write only]

  Icon As android.graphics.drawable.Drawable [write only]

  Initialize

  IsShowing As Boolean

  SetHomeAsUpIndicator (Icon As android.graphics.drawable.Drawable)

  Show

  ShowHomeAsUp As Boolean [write only]

  TitleVisible As Boolean [write only]

Members description:

Hide
Hide the ActionBar
HomeButtonEnabled As Boolean [write only]
Enable/Disable the home button
HomeVisible As Boolean [write only]
Show/Hide the home icon
Icon As android.graphics.drawable.Drawable [write only]
Set the icon of the ActionBar

Drawable to be used for the Home Icon
Initialize
Initializes the object
IsShowing As Boolean
Returns if the ActionBar is currently hidden or not.
SetHomeAsUpIndicator (Icon As android.graphics.drawable.Drawable)
Set the up indicator drawable. Useful for implementing the NavigationDrawer pattern.

Icon: Drawable to be used for the Icon
Description: Description for the Homebutton (long press info)
Show
Show the ActionBar
ShowHomeAsUp As Boolean [write only]
Show Home Icon with up indicator
TitleVisible As Boolean [write only]
Show/Hide the title
Top