Udostępnij za pośrednictwem


IMenuItem.ExpandActionView Method

Definition

Expand the action view associated with this menu item.

[Android.Runtime.Register("expandActionView", "()Z", "GetExpandActionViewHandler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool ExpandActionView ();
[<Android.Runtime.Register("expandActionView", "()Z", "GetExpandActionViewHandler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ExpandActionView : unit -> bool

Returns

true if the action view was expanded, false otherwise.

Attributes

Remarks

Expand the action view associated with this menu item. The menu item must have an action view set, as well as the showAsAction flag #SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW. If a listener has been set using #setOnActionExpandListener(OnActionExpandListener) it will have its OnActionExpandListener#onMenuItemActionExpand(MenuItem) method invoked. The listener may return false from this method to prevent expanding the action view.

Java documentation for android.view.MenuItem.expandActionView().

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