Created
January 8, 2018 01:24
-
-
Save mataanin/846e7a7440e53bc99c6e43888ce1fb20 to your computer and use it in GitHub Desktop.
Intuitive Focus
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
// Intuitive Focus Extension, Kotlin, Android min 19 SDK | |
fun View.accessibilityFullFocus() { | |
sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_FOCUSED) | |
requestFocus() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment