活动之间的刷卡
我想活动之间的刷卡,但我不知道什么最佳做法是。
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.