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.
如何实现onItemLongClickGridViewonItemClick以便 GridView 项目响应这两个事件?
onItemLongClick
onItemClick
我发现诀窍在于 longclick 侦听器回调的返回值。如果返回true,onclicklongclick 调用后不会被调用,simple click 只会调用onclick。它对我来说很好。
onclick