Android: Context menu on single click
问题 I have an Intent that extends a ListActivity. In my onCreate method after having populated the list adapter I use registerForContextMenu(getListView()); to register for a context menu. Now it is working and the context menu has its original function which is; once I click and hold down on an item the context menu opens. Can I open the context menu on a single click (without having to hold down on the list)? All help is appreciated. 回答1: call activity.openContextMenu(l) onitem click event to