How to create a context menu on a MenuItem of a navigation drawer?
<p>I would like to open a context menu on some of my navigation drawer MenuItems (in order to display dynamically created lists of items to select from). But I cannot find out which view to use for <code>registerForContextMenu</code>, nor do I know which view to pass to <code>openContextMenu</code> manually (e.g., if I want the context menu also to show up on a single click). Simply using the MenuItem identifier won't work, since it cannot be cast to a View. So how can I use a context menu here?</p>