共用方式為


ViewGroup.ShowContextMenuForChild Method

Definition

Overloads

ShowContextMenuForChild(View)

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

ShowContextMenuForChild(View, Single, Single)

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

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)

[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
x
Single
y
Single

Returns

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