Google 致力于为黑人社区推动种族平等。查看具体举措

PointerIconCompat

class PointerIconCompat
kotlin.Any
   ↳ androidx.core.view.PointerIconCompat

Helper for accessing features in android.view.PointerIcon in a backwards compatible fashion.

Summary

Constants
static Int

Synonym for android.view.PointerIcon#TYPE_ALIAS

static Int

Synonym for android.view.PointerIcon#TYPE_ALL_SCROLL

static Int

Synonym for android.view.PointerIcon#TYPE_ARROW

static Int

Synonym for android.view.PointerIcon#TYPE_CELL

static Int

Synonym for android.view.PointerIcon#TYPE_CONTEXT_MENU

static Int

Synonym for android.view.PointerIcon#TYPE_COPY

static Int

Synonym for android.view.PointerIcon#TYPE_CROSSHAIR

static Int

Synonym for android.view.PointerIcon#TYPE_DEFAULT

static Int

Synonym for android.view.PointerIcon#TYPE_GRAB

static Int

Synonym for android.view.PointerIcon#TYPE_GRABBING

static Int

Synonym for android.view.PointerIcon#TYPE_HAND

static Int

Synonym for android.view.PointerIcon#TYPE_HELP

static Int

Synonym for android.view.PointerIcon#TYPE_HORIZONTAL_DOUBLE_ARROW

static Int

Synonym for android.view.PointerIcon#TYPE_NO_DROP

static Int

Synonym for android.view.PointerIcon#TYPE_NULL

static Int

Synonym for android.view.PointerIcon#TYPE_TEXT

static Int

Synonym for android.view.PointerIcon#TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW

static Int

Synonym for android.view.PointerIcon#TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW

static Int

Synonym for android.view.PointerIcon#TYPE_VERTICAL_DOUBLE_ARROW

static Int

Synonym for android.view.PointerIcon#TYPE_VERTICAL_TEXT

static Int

Synonym for android.view.PointerIcon#TYPE_WAIT

static Int

Synonym for android.view.PointerIcon#TYPE_ZOOM_IN

static Int

Synonym for android.view.PointerIcon#TYPE_ZOOM_OUT

Public methods
static PointerIconCompat!
create(bitmap: Bitmap!, hotSpotX: Float, hotSpotY: Float)

Creates a custom pointer from the given bitmap and hotspot information.

static PointerIconCompat!
getSystemIcon(context: Context!, style: Int)

Gets a system pointer icon for the given style.

static PointerIconCompat!
load(resources: Resources!, resourceId: Int)

Loads a custom pointer icon from an XML resource.

Constants

TYPE_ALIAS

static val TYPE_ALIAS: Int

Synonym for android.view.PointerIcon#TYPE_ALIAS

Value: 1010

TYPE_ALL_SCROLL

static val TYPE_ALL_SCROLL: Int

Synonym for android.view.PointerIcon#TYPE_ALL_SCROLL

Value: 1013

TYPE_ARROW

static val TYPE_ARROW: Int

Synonym for android.view.PointerIcon#TYPE_ARROW

Value: 1000

TYPE_CELL

static val TYPE_CELL: Int

Synonym for android.view.PointerIcon#TYPE_CELL

Value: 1006

TYPE_CONTEXT_MENU

static val TYPE_CONTEXT_MENU: Int

Synonym for andr