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.
Gallery 的每个窗格都包含多个视图,我需要区分它们的点击 - AdapterView.OnItemClickListener() 只是表示 Gallery 已被点击。同时获得画廊投掷和查看点击的最佳方式是什么?
在您的点击侦听器中,返回false. 返回false意味着该事件没有被消费,并将该事件传播给可能正在观看同一事件的其他视图。
false
您的项目布局的某些部分不应包含可点击项目。如果您触摸该部分并尝试滑动,它应该可以工作。
这正是我需要的:
https://github.com/pakerfeldt/android-viewflow