Language

ViewGroup.ShowContextMenuForChild Method

Definition

Overloads

Name Description
ShowContextMenuForChild(View)

Bring up a context menu for the specified view or its ancestors.

ShowContextMenuForChild(View, Single, Single)

Requests that this parent show a context menu for the specified child at the supplied coordinates.

ShowContextMenuForChild(View)

Bring up a context menu for the specified view or its ancestors.

[Android.Runtime.Register("showContextMenuForChild", "(Landroid/view/View;)Z", "GetShowContextMenuForChild_Landroid_view_View_Handler")]
public virtual bool ShowContextMenuForChild(Android.Views.View? originalView);
[<Android.Runtime.Register("showContextMenuForChild", "(Landroid/view/View;)Z", "GetShowContextMenuForChild_Landroid_view_View_Handler")>]
abstract member ShowContextMenuForChild : Android.Views.View -> bool
override this.ShowContextMenuForChild : Android.Views.View -> bool

Parameters

originalView
View

The source view where the context menu was first invoked

Returns

true if the context menu was shown, false otherwise

Implements

Attributes

Remarks

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

ShowContextMenuForChild(View, Single, Single)

Requests that this parent show a context menu for the specified child at the supplied coordinates.

[Android.Runtime.Register("showContextMenuForChild", "(Landroid/view/View;FF)Z", "GetShowContextMenuForChild_Landroid_view_View_FFHandler", ApiSince=24)]
public virtual bool ShowContextMenuForChild(Android.Views.View? originalView, float x, float y);
[<Android.Runtime.Register("showContextMenuForChild", "(Landroid/view/View;FF)Z", "GetShowContextMenuForChild_Landroid_view_View_FFHandler", ApiSince=24)>]
abstract member ShowContextMenuForChild : Android.Views.View * single * single -> bool
override this.ShowContextMenuForChild : Android.Views.View * single * single -> bool

Parameters

originalView
View

the source view where the context menu was first invoked

x
Single

the X coordinate in pixels relative to the original view to which the menu should be anchored, or NaN to disable anchoring

y
Single

the Y coordinate in pixels relative to the original view to which the menu should be anchored, or NaN to disable anchoring

Returns

true if the context menu was shown, false otherwise

Implements

Attributes

Remarks

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