Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
问题:我在做
registerForContextMenu(list);
一切都很好,除了 ;
问题:我想在 contextMenu 被解除时触发一个动作。如果用户关闭 contextMenu 我怎么能有一个监听器?
谢谢。
您可以覆盖该方法:
@Override public void onContextMenuClosed(Menu menu) { super.onContextMenuClosed(menu); }
做任何你想做的事:)
祝你好运,阿克德