Skip to content

Instantly share code, notes, and snippets.

@kford55
Last active April 16, 2020 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kford55/aa2e660fc18768de7e010c3f97be16e8 to your computer and use it in GitHub Desktop.
Save kford55/aa2e660fc18768de7e010c3f97be16e8 to your computer and use it in GitHub Desktop.
Gist showing how to change mouse pointer icons on an Android App
yourView.setOnHoverListener { view, motionEvent ->
// Change to the hand icon that users expect when
// hovering over something actionable
View.pointerIcon =
PointerIcon.getSystemIcon(context, PointerIcon.TYPE_HAND)
false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment