Add a menu item to the menu and put this item into a group.
GroupId : Id of the group ItemId : Id for the item SortOrder : Sort order id 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 (ItemIdAsInt) AsACMenuItem
returns the item with the given Id. Returns null if the item cannot be found.
GroupId : Id of the group Checkable : True or False to make the group checkable or not Exclusive : If set to True only one item can be checked at a time. All other items will be unchecked.
SetGroupEnabled (GroupIdAsInt, EnableAsBoolean)
Make the given group enabled/disabled
GroupId : Id of the group Enable : True or False to enable/disable the group
SetGroupVisible (GroupIdAsInt, VisibleAsBoolean)
Make the given group visible/invisible
GroupId : Id of the group Visible : True or False to make the group visible/invisible
Add a menu item to the menu and put this item into a group.
GroupId : Id of the group ItemId : Id for the item SortOrder : Sort order id 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.
ClearHeader
Close
Close the menu if it is open.
FindItem (ItemIdAsInt) AsACMenuItem
returns the item with the given Id. Returns null if the item cannot be found.
GroupId : Id of the group Checkable : True or False to make the group checkable or not Exclusive : If set to True only one item can be checked at a time. All other items will be unchecked.
SetGroupEnabled (GroupIdAsInt, EnableAsBoolean)
Make the given group enabled/disabled
GroupId : Id of the group Enable : True or False to enable/disable the group
SetGroupVisible (GroupIdAsInt, VisibleAsBoolean)
Make the given group visible/invisible
GroupId : Id of the group Visible : True or False to make the group visible/invisible
Sets a bitmap as a Logo. A logo in a toolbar is not clickable.
LogoDrawableAsandroid.graphics.drawable.Drawable
Sets or gets the Logo for the Toolbar. The logo is not clickable and is vertically centered in the toolbar.
MenuAsACMenu [read only]
Gets the menu of the ToolBar
MinHeightAsInt
Sets or gets the minimum height of the ToolBar. The MinHeight property is handled in a special way on ToolBars. The Overflow menu button and the navigation item are vertically centered relative to the MinHeight. So if you have a ToolBar with a height of 112dip and a minheight of 56dip the Overflow menu and navigation item are placed in the upper half of the ToolBar. If you don't set MinHeight the items are placed centered relative to the whole ToolBar height.
Sets a bitmap as a Logo. A logo in a toolbar is not clickable.
LogoDrawableAsandroid.graphics.drawable.Drawable
Sets or gets the Logo for the Toolbar. The logo is not clickable and is vertically centered in the toolbar.
MenuAsACMenu [read only]
Gets the menu of the ToolBar
MinHeightAsInt
Sets or gets the minimum height of the ToolBar. The MinHeight property is handled in a special way on ToolBars. The Overflow menu button and the navigation item are vertically centered relative to the MinHeight. So if you have a ToolBar with a height of 112dip and a minheight of 56dip the Overflow menu and navigation item are placed in the upper half of the ToolBar. If you don't set MinHeight the items are placed centered relative to the whole ToolBar height.