Created
April 22, 2018 14:13
-
-
Save ataulm/59bd5fa57e121d174962643d374e11f5 to your computer and use it in GitHub Desktop.
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
// github.com/novoda/accessibilitools | |
val actionsMenuInflater = ActionsMenuInflater.from(getContext()) | |
val listener: MenuItem.OnMenuItemClickListener = // ... | |
val menu = actionsMenuInflater.inflate(R.menu.actions, listener) | |
val delegate = ActionsMenuAccessibilityDelegate(menu, listener) | |
ViewCompat.setAccessibilityDelegate(itemView, delegate) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment