Skip to content

Instantly share code, notes, and snippets.

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 ataulm/59bd5fa57e121d174962643d374e11f5 to your computer and use it in GitHub Desktop.
Save ataulm/59bd5fa57e121d174962643d374e11f5 to your computer and use it in GitHub Desktop.
// 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