Skip to main content

Menu Items

Toolset configuration#

Editor Tools

In order to change the tools or rearrange them, use the setToolList method of the UiConfigMainMenu object. Before this, you can use the getTools() method to get an ArrayList containing the default tools. You can use the clear() method to clear the list and refill it with your selection of tools in the preferred order or update it directly. You can also add custom tools by extending the AbstractToolPanel class.

A single ToolItem object takes three parameters:

  1. ID of the tool panel
  2. The tool name
  3. ImageSource of the icon
// Obtain the config
settingsList.configure<UiConfigMainMenu> {
// Set the tools you want keep sure you license is cover the feature and do not forget to include the correct modules in your build.gradle
it.setToolList(
// Composition tool (needs 'ui:video-composition')
ToolItem(
"imgly_tool_composition",
R.string.vesdk_video_composition_title_name,
ImageSource.create(R.drawable.imgly_icon_tool_video_composition)
),
// Trim tool (Is redundant together with the composition tool, needs 'ui:video-trim')
ToolItem("imgly_tool_trim", R.string.vesdk_video_trim_title_name, ImageSource.create(R.drawable.imgly_icon_tool_trim)),
// Audio Overlay tool (needs 'ui:audio-composition')
ToolItem(
"imgly_tool_audio_overlay_options",
R.string.vesdk_audio_composition_title_name,
ImageSource.create(R.drawable.imgly_icon_tool_audio)
),
// Transformation tool (needs 'ui:transform')
ToolItem(
"imgly_tool_transform",
R.string.pesdk_transform_title_name,
ImageSource.create(R.drawable.imgly_icon_tool_transform)
),
// Filter tool (needs 'ui:filter')
ToolItem("imgly_tool_filter", R.string.pesdk_filter_title_name, ImageSource.create(R.drawable.imgly_icon_tool_filters)),
// Adjustment tool (needs 'ui:adjustment')
ToolItem(
"imgly_tool_adjustment",
R.string.pesdk_adjustments_title_name,
ImageSource.create(R.drawable.imgly_icon_tool_adjust)
),
// Sticker tool (needs 'ui:sticker')
ToolItem(
"imgly_tool_sticker_selection",
R.string.pesdk_sticker_title_name,
ImageSource.create(R.drawable.imgly_icon_tool_sticker)
),
// Text Design tool (needs 'ui:text-design')
ToolItem(
"imgly_tool_text_design",
R.string.pesdk_textDesign_title_name,
ImageSource.create(R.drawable.imgly_icon_tool_text_design)
),
// Text tool (needs 'ui:text')
ToolItem("imgly_tool_text", R.string.pesdk_text_title_name, ImageSource.create(R.drawable.imgly_icon_tool_text)),
// Overlay tool (needs 'ui:overlay')
ToolItem("imgly_tool_overlay", R.string.pesdk_overlay_title_name, ImageSource.create(R.drawable.imgly_icon_tool_overlay)),
// Frame tool (needs 'ui:frame')
ToolItem("imgly_tool_frame", R.string.pesdk_frame_title_name, ImageSource.create(R.drawable.imgly_icon_tool_frame)),
// Brush tool (needs 'ui:brush')
ToolItem("imgly_tool_brush", R.string.pesdk_brush_title_name, ImageSource.create(R.drawable.imgly_icon_tool_brush)),
// Focus tool (needs 'ui:focus')
ToolItem("imgly_tool_focus", R.string.pesdk_focus_title_name, ImageSource.create(R.drawable.imgly_icon_tool_focus))
)
}