活动之间的刷卡 [英] Swipe between activities

查看:119
本文介绍了活动之间的刷卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想活动之间的刷卡,但我不知道什么最佳做法是。

I want to swipe between activities, but I'm not sure what best practices would be.

我应该抛开一切在一次,而每个活动滚动?...并不会导致内存问题?

Should I throw everything in at once and scroll from each activity?...and does that create memory problems?

还是我最好实现一个实际刷卡?

Or am I better off implementing an actual swipe?

是我应该考虑有没有其他的方法呢?

Are there other methods I should consider?

最终这场比赛将是10-15的活动充满了HTML,制作一本杂志......所以我希望用户能够从每篇文章(这将是1元的活动),以另一种刷卡。

The end-game will be 10-15 Activities filled with HTML, making up a magazine...so I want the user to be able to swipe from each article (which will be 1 per activity) to another.

谢谢!

推荐答案

您也可以使用的 GestureDetector OnGestureListener 展开新当一扔检测与公共布尔onFling意图()。

You could also use GestureDetector and OnGestureListener to launch a new Intent when a fling is detected with public boolean onFling().

我个人所描述的使用ViewPager kabuko

Personally I would use the ViewPager as described by kabuko.

这篇关于活动之间的刷卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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