Android : Get view Reference to a Menu Item
问题 I plan to use quick actions UI pattern in my application. Android Quick Actions UI Pattern . The quick action window needs a pivot view to stick to. quickAction.show(View pivotView); I intend to use quick action for the menu Item, I can get access to the item that is clicked. But the problem is i need to reference a view from the menu item so that i can pass it to the quick action. How can i get reference to a view in the menuItem that is selected. 回答1: You can achieve this by providing your