本文讲解了如何使用一个工具栏小部件样例MyToolbarAction来创建工具栏小部件的自定义工具栏动作小部件。
This article described how to use a sample toolbar action widget, MyToolbarAction, to create a customized toolbar action widget of the toolbar widget.
定义文件需要指定用工具栏小部件注册自定义小部件所需的发布和处理事件。
The definition file needs to specify the published and handled events required to register your custom widget with the toolbar widget.
通过编辑工具栏小部件设置项来添加自定义动作的工具栏。
Add a toolbar menu of the custom action by editing the toolbar widget Settings.
应用推荐