-
-
Save kford55/aa2e660fc18768de7e010c3f97be16e8 to your computer and use it in GitHub Desktop.
Gist showing how to change mouse pointer icons on an Android App
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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