{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PointerIcon.Companion

public static class PointerIcon.Companion


A collection of common pointer icons used for the mouse cursor. These icons will be used to assign default pointer icons for various widgets.

Summary

Public methods

static final @NonNull PointerIcon

Commonly used when selecting precise portions of the screen.

static final @NonNull PointerIcon

The default arrow icon that is commonly used for cursor icons.

static final @NonNull PointerIcon

Commonly used to indicate to a user that an element is clickable.

static final @NonNull PointerIcon

Also called an I-beam cursor, this is commonly used on selectable or editable text.

Public methods

getCrosshair

public static final @NonNull PointerIcon getCrosshair()

Commonly used when selecting precise portions of the screen.

getDefault

public static final @NonNull PointerIcon getDefault()

The default arrow icon that is commonly used for cursor icons.

getHand

public static final @NonNull PointerIcon getHand()

Commonly used to indicate to a user that an element is clickable.

getText

public static final @NonNull PointerIcon getText()

Also called an I-beam cursor, this is commonly used on selectable or editable text.