Share via


PopupMenu.SetForceShowIcon(Boolean) Method

Definition

Sets whether the popup menu's adapter is forced to show icons in the menu item views.

[Android.Runtime.Register("setForceShowIcon", "(Z)V", "GetSetForceShowIcon_ZHandler", ApiSince=29)]
public virtual void SetForceShowIcon (bool forceShowIcon);
[<Android.Runtime.Register("setForceShowIcon", "(Z)V", "GetSetForceShowIcon_ZHandler", ApiSince=29)>]
abstract member SetForceShowIcon : bool -> unit
override this.SetForceShowIcon : bool -> unit

Parameters

forceShowIcon
Boolean

true to force icons to be shown, or false for icons to be optionally shown

Attributes

Remarks

Sets whether the popup menu's adapter is forced to show icons in the menu item views.

Changes take effect on the next call to show().

Java documentation for android.widget.PopupMenu.setForceShowIcon(boolean).

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