本文介绍了长按列表项以打开弹出菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我试图在列表视图中长按某个项目时弹出一个小菜单,可以有人指出我正确的方向吗?
Hello im trying to make a small menu pop up once an item is long pressed in my list view can some one point me in the right direction to accomplish this?
推荐答案
这些帖子包含您问题的可能解决方案:
These posts contain possible solutions to your problem:
- Long click on list activity item
- Show a context menu for long-clicks in an Android ListView
- Click & Long-Press Event Listeners in a ListActivity
- ContextMenu not popping up on Long click
我希望它会有所帮助.
I hope it helps.
这篇关于长按列表项以打开弹出菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!