次の方法で共有


PointerIcon.Load(Resources, Int32) Method

Definition

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: &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;pointer-icon xmlns:android="http://schemas.android.com/apk/res/android" android:bitmap="@drawable/my_pointer_bitmap" android:hotSpotX="24" android:hotSpotY="24" /&gt;

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.

Applies to