感谢以下链接的原作者。
- Android 的上下文菜单: Context Menu 这个步骤写的很详细
- Android中上下文菜单选项--ContextMenu 代码详细
- Android中ListView通过ContextMenu删除当前点击的一行数据 这个让我知道AdapterContextMenuInfo
- android ContextMenu 长按菜单 整理 摘 这个整理的相当全 就是排版有点乱
- 为什么ListView.setOnItemClickListener、setOnCreateContextMenuListener会无效 提到的android:descendantFocusability=”blocksDescendant”相当给力
- Android: long click on the child views of a ExpandableListView? 提到了ExpandableListView.ExpandableListContextMenuInfo 解决ExpandableListView group和child上下文菜单处理方式不同的方法。
希望对大家有帮助