我如何实现这样的布局? [英] How do I implement such a layout?

查看:131
本文介绍了我如何实现这样的布局?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在此布局的照片可以刷卡左,右,和刷卡应该是'聪明',像照片之间的切换,而不是像照片只是水平滚动。

Photos in this layout can be swiped left and right, and swipe should be 'intelligent', like switching between photos and NOT like just horizontal scrolling of photos.

2实现,来我的脑海:

2 implementations that come to my mind:


  1. Horizo​​ntalScrollView(但刷卡是哑巴)

  2. ViewPager(但没有办法看到相邻的照片)

所以,basicly我需要一个ViewPager的照片,可以显示相邻的照片。
是否有一个强大的解决方案为这个?

So, basicly I need a ViewPager for photos that can show adjacent photos. Is there a robust solution for this?

推荐答案

我已经使用 TwoWayView 实现我的布局。
它比Horizo​​ntalView更好,因为它重新使用视图(如ListView控件)。

I have used TwoWayView to implement my layout. It's better than HorizontalView, cause it re-uses views (like ListView).

这篇关于我如何实现这样的布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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