Udostępnij za pośrednictwem


PopupMenu.Inflate(Int32) Method

Definition

Inflate a menu resource into this PopupMenu.

[Android.Runtime.Register("inflate", "(I)V", "GetInflate_IHandler")]
public virtual void Inflate (int menuRes);
[<Android.Runtime.Register("inflate", "(I)V", "GetInflate_IHandler")>]
abstract member Inflate : int -> unit
override this.Inflate : int -> unit

Parameters

menuRes
Int32

Menu resource to inflate

Attributes

Remarks

Inflate a menu resource into this PopupMenu. This is equivalent to calling popupMenu.getMenuInflater().inflate(menuRes, popupMenu.getMenu()).

Java documentation for android.widget.PopupMenu.inflate(int).

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