同步两个画廊 [英] Synchronize two Galleries

查看:162
本文介绍了同步两个画廊的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个画廊的活动。我想这两个画廊同步,所以当我在一个画廊要搬家,我应该搬到其他的画廊,以匹配相同的项目。

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.

我不知道如何做到这一点。不过,我觉得它可以通过同步onScroll事件来完成,我跟着这个一个很好的尝试,但它不工作。我想这是因为我不感兴趣的滚动事件,也许就一扔事件?

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?

推荐答案

是否可以只使用一个图库并具有查看,它显示同时显示你的项目?

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

这篇关于同步两个画廊的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆