A ToolBar is similar to a Menu, with several key differences:
- ToolBars act as regular Views, and can be placed in layouts or in other views.
- MenuActions on a toolbar appear as buttons instead of being listed menu-style
- By default, MenuActions that have icons show ONLY the icon. MenuActions with text will appear as a text button. This can be changed using the toolButtonStyle property.
Create a new ToolBar containing one or more actions.
Arguments:
The horizontal or vertical orientation of the ToolBar
Arguments:
Controls whether the toolbar shows icons, text, or both.
Arguments:
Discussion: