Sdílet prostřednictvím


ActionProvider.HasSubMenu Property

Definition

Determines if this ActionProvider has a submenu associated with it.

public virtual bool HasSubMenu { [Android.Runtime.Register("hasSubMenu", "()Z", "GetHasSubMenuHandler")] get; }
[<get: Android.Runtime.Register("hasSubMenu", "()Z", "GetHasSubMenuHandler")>]
member this.HasSubMenu : bool

Property Value

true if the item backed by this provider should have an associated submenu

Attributes

Remarks

Determines if this ActionProvider has a submenu associated with it.

Associated submenus will be shown when an action view is not. This provider instance will receive a call to #onPrepareSubMenu(SubMenu) after the call to #onPerformDefaultAction() and before a submenu is displayed to the user.

Java documentation for android.view.ActionProvider.hasSubMenu().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to