Udostępnij za pośrednictwem


View.PointerIcon Property

Definition

Gets the mouse pointer icon for the current view. -or- Set the pointer icon to be used for a mouse pointer in the current view.

public virtual Android.Views.PointerIcon? PointerIcon { [Android.Runtime.Register("getPointerIcon", "()Landroid/view/PointerIcon;", "GetGetPointerIconHandler", ApiSince=24)] get; [Android.Runtime.Register("setPointerIcon", "(Landroid/view/PointerIcon;)V", "GetSetPointerIcon_Landroid_view_PointerIcon_Handler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getPointerIcon", "()Landroid/view/PointerIcon;", "GetGetPointerIconHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setPointerIcon", "(Landroid/view/PointerIcon;)V", "GetSetPointerIcon_Landroid_view_PointerIcon_Handler", ApiSince=24)>]
member this.PointerIcon : Android.Views.PointerIcon with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Gets the mouse pointer icon for the current view.

Java documentation for android.view.View.getPointerIcon().

Property setter documentation:

Set the pointer icon to be used for a mouse pointer in the current view.

Passing null will restore the pointer icon to its default value. Note that setting the pointer icon using this method will only set it for events coming from a mouse device (i.e. with source InputDevice#SOURCE_MOUSE). To resolve the pointer icon for other device types like styluses, override #onResolvePointerIcon(MotionEvent, int).

Java documentation for android.view.View.setPointerIcon(android.view.PointerIcon).

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