PointerIcon.Load(Resources, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Loads a custom pointer icon from an XML resource.
[Android.Runtime.Register("load", "(Landroid/content/res/Resources;I)Landroid/view/PointerIcon;", "", ApiSince=24)]
public static Android.Views.PointerIcon Load (Android.Content.Res.Resources resources, int resourceId);
[<Android.Runtime.Register("load", "(Landroid/content/res/Resources;I)Landroid/view/PointerIcon;", "", ApiSince=24)>]
static member Load : Android.Content.Res.Resources * int -> Android.Views.PointerIcon
Parameters
- resources
- Resources
The resources object.
- resourceId
- Int32
The resource id.
Returns
The pointer icon.
- Attributes
Remarks
Loads a custom pointer icon from an XML resource.
The XML resource should have the following form: <?xml version="1.0" encoding="utf-8"?> <pointer-icon xmlns:android="http://schemas.android.com/apk/res/android" android:bitmap="@drawable/my_pointer_bitmap" android:hotSpotX="24" android:hotSpotY="24" />
Java documentation for android.view.PointerIcon.load(android.content.res.Resources, 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.