1.04
de.amberhome.actionbarhelper.SearchViewWrapper
SearchView
activity
QuerySubmitted (Query as String)
Initialize
Initialize the object
EventName: Name of the event
void
ba
anywheresoftware.b4a.BA
EventName
java.lang.String
Submit
Programatically Submit the search phrase.
void
Iconfied
boolean
Iconified
boolean
Set/Get if the SerachView is iconified
QueryHint
java.lang.String
Hint
java.lang.String
Set/Get the query hint
Hint: Text to set
Query
java.lang.String
Query
java.lang.String
Set/Get the query text
Query: Text to set
SubmitButtonEnabled
boolean
Enabled
boolean
Set/Get if the submit button is enabled
IconifiedByDefault
boolean
Iconified
boolean
Set/Get if the SearchView is iconified by default
de.amberhome.actionbarhelper.PopupMenuWrapper
PopupMenu
activity
ItemClicked (Item As MenuItem)
Closed
Initialize
Initialize the PopupMenu
EventName: Name for the events
View: Anchor View which is used for the PopupMenu position
void
ba
anywheresoftware.b4a.BA
EventName
java.lang.String
view
android.view.View
Close
Close the Popup menu
void
RemoveMenuItem
Remove menu item
ItemId: Item to be removed
void
ItemId
int
GetMenu
Gets the menu object
de.amberhome.actionbarhelper.MenuWrapper
Show
Show the popup menu.
void
GetItem
Get the Menu Item Object for a given Id
android.view.MenuItem
ItemId
int
AddMenuItem
Add a new menu item and then return it.
ItemId: Id for the menu item
Title: Title for the menu
Icon: Drawable to be shown as menu icon
de.amberhome.actionbarhelper.MenuItemWrapper
ItemId
int
Title
java.lang.CharSequence
Icon
android.graphics.drawable.Drawable
de.amberhome.actionbarhelper.MenuWrapper
Menu
android.view.Menu
process
Clear
Clears all menu items from the menu.
void
GetItem
returns the item with the given index.
de.amberhome.actionbarhelper.MenuItemWrapper
Index
int
Close
Close the menu if it is open.
void
RemoveItem
Remove Item from menu
ItemId : item to be removed
void
ItemId
int
FindItem
returns the item with the given Id. Returns null if the item cannot be found.
ItemId : Id of the item to be searched for.
de.amberhome.actionbarhelper.MenuItemWrapper
ItemId
int
Add
Add a menu item to the menu
ItemId : Id for the item
Title : Title for the item
Icon : Bitmap that is used as an icon. Pass null for no icon.
de.amberhome.actionbarhelper.MenuItemWrapper
ItemId
int
SortOrder
int
Title
java.lang.String
Icon
android.graphics.Bitmap
Add2
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.
de.amberhome.actionbarhelper.MenuItemWrapper
ItemId
int
SortOrder
int
Title
java.lang.String
Icon
android.graphics.drawable.Drawable
Size
Returns the number of items in the menu
int
IsInitialized
boolean
de.amberhome.actionbarhelper.MenuItemWrapper
MenuItem
android.view.MenuItem
process
IsInitialized
boolean
ItemCollapsed
boolean
Flag
boolean
Set/get the item to collapsed mode. (For the SearchView for example)
Enabled
boolean
Enabled
boolean
Enable/disable the item
ShowAsAction
ActionType
int
Show menu item as action if possible.
Visible
boolean
Visible
boolean
Show/hide the item
Checkable
boolean
Cheackable
boolean
Make the item checkable
SearchView
SearchView
de.amberhome.actionbarhelper.SearchViewWrapper
Connects a SearchView to this MenuItem.
SearchView: Instance of a SearchView object
Checked
boolean
Checked
boolean
Check the item
Id
int
Gets the item id
Title
java.lang.String
Title
java.lang.String
Sets/gets the title of the menu
Icon
android.graphics.drawable.Drawable
Icon
android.graphics.drawable.Drawable
Sets or gets the Icon for the menu item.
Icon : Icon drawable
SHOW_AS_ACTION_WITH_TEXT
int
SHOW_AS_ACTION_ALWAYS
int
SHOW_AS_ACTION_IF_ROOM
int
SHOW_AS_ACTION_NEVER
int
de.amberhome.actionbarhelper.ActionModeWrapper
ActionMode
activity
ItemClicked (Item As MenuItem)
Created (Menu as Menu)
Prepared (Menu as Menu)
Closed
Invalidate
Invalidate the ActionMode and recreate the menu. If this method is called the _Prepared event is called again where the menu can be modified.
void
Initialize
Initialize the ActionMode object
EventName: Name for the Events
void
ba
anywheresoftware.b4a.BA
EventName
java.lang.String
Start
Start the ActionMode
void
IsActive
returns true if the ActionMode is currently active
boolean
Finish
End the ActionMode and close the contextual ActionBar
void
SubTitle
java.lang.String
SubTitle
java.lang.String
Sets or gets the SubTitle
Title
java.lang.String
Title
java.lang.String
Sets or gets the Title
de.amberhome.actionbarhelper.ActionBarHelper
StdActionBarHelper
activity
Initialize
Initializes the object
void
ba
anywheresoftware.b4a.BA
Hide
Hide the ActionBar
void
Show
Show the ActionBar
void
IsShowing
Returns if the ActionBar is currently hidden or not.
boolean
SetHomeAsUpIndicator
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)
void
ba
anywheresoftware.b4a.BA
Icon
android.graphics.drawable.Drawable
HomeVisible
Value
boolean
Show/Hide the home icon
ShowHomeAsUp
Value
boolean
Show Home Icon with up indicator
HomeButtonEnabled
Value
boolean
Enable/Disable the home button
TitleVisible
Value
boolean
Show/Hide the title
Icon
Icon
android.graphics.drawable.Drawable
Set the icon of the ActionBar
Drawable to be used for the Home Icon
1.1
Markus Stipp