Synchronize two Galleries

ぃ、小莉子 提交于 2019-12-11 07:17:49

问题


I have an activity with two galleries. I want to synchronise both galleries so when I'm moving in one gallery, I should move the other gallery to match the same item.

I don't know how to accomplish this. I though it could be done by synchronising the onScroll event, I followed a good attempt on this, but it doesn't work. I assume it's because I'm not interested on the scroll event, maybe on the fling event?

Anyway, I don't know which is the proper event to observe and how to implement this. Can you help me out?


回答1:


Is it possible to just use one Gallery and have the View that it displays display both your items?



来源:https://stackoverflow.com/questions/5625522/synchronize-two-galleries

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!