次の方法で共有


Toolbar.InflateMenu(Int32) Method

Definition

Inflate a menu resource into this toolbar.

[Android.Runtime.Register("inflateMenu", "(I)V", "GetInflateMenu_IHandler")]
public virtual void InflateMenu (int resId);
[<Android.Runtime.Register("inflateMenu", "(I)V", "GetInflateMenu_IHandler")>]
abstract member InflateMenu : int -> unit
override this.InflateMenu : int -> unit

Parameters

resId
Int32

ID of a menu resource to inflate

Attributes

Remarks

Inflate a menu resource into this toolbar.

Inflate an XML menu resource into this toolbar. Existing items in the menu will not be modified or removed.

Java documentation for android.widget.Toolbar.inflateMenu(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