ContextualToolbarSubMenu

This view is a component of contextual toolbar. It represents a submenu. The contextual toolbar will display items in this submenu below the main menu bar.

Note: This view wraps ContextualToolbarMenuBar in a horizontal or vertical scroll view (depending on its position). This allows to display more ContextualToolbarMenuItems than fits the toolbar width.

Constructors

Link copied to clipboard
constructor(context: Context)
constructor(context: Context, attrs: AttributeSet)
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int)

Properties

Link copied to clipboard
Menu bar holding the submenu items.

Functions

Link copied to clipboard
open fun hideMenuItems(animate: Boolean): Completable
Hides all menu items in the submenu with an optional animation.
Link copied to clipboard
open fun removeAllViews()
Removes all child views from the submenu, including all views from the internal menu bar.
Link copied to clipboard
open fun setBackgroundColor(color: Int)
Sets the background color of the submenu.
Link copied to clipboard
open fun setBorderAndBackroundColor(borderColor: Int, backgroundColor: Int)
Sets both the border and background colors of the submenu.
Link copied to clipboard
open fun setBorderColor(color: Int)
Sets the border color of the submenu.
Link copied to clipboard
Sets menu items to the toolbar.
Link copied to clipboard
open fun showMenuItems(animate: Boolean): Completable
Shows all menu items in the submenu with an optional animation.