共用方式為


Activity.InvalidateOptionsMenu Method

Definition

Declare that the options menu has changed, so should be recreated.

[Android.Runtime.Register("invalidateOptionsMenu", "()V", "GetInvalidateOptionsMenuHandler")]
public virtual void InvalidateOptionsMenu ();
[<Android.Runtime.Register("invalidateOptionsMenu", "()V", "GetInvalidateOptionsMenuHandler")>]
abstract member InvalidateOptionsMenu : unit -> unit
override this.InvalidateOptionsMenu : unit -> unit
Attributes

Remarks

Declare that the options menu has changed, so should be recreated. The #onCreateOptionsMenu(Menu) method will be called the next time it needs to be displayed.

Java documentation for android.app.Activity.invalidateOptionsMenu().

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