2013-02-13 74 views
0

我的Android应用程序中有超过30张图片。我计划在用户向左或向右滑动时显示一张图片。Android中的手势

这样做的最好方法是什么?你能指出一些实际的例子吗?

回答

0
+0

但画廊已经过时了吧? – Naveen 2013-02-13 10:55:07

+0

@纳文:是的。对不起,我错过了弃用部分。您可以尝试使用水平滚动视图-http://developer.android.com/reference/android/widget/Horizo​​ntalScrollView.html – Anukool 2013-02-13 11:36:02

0
see this ... 
    http://developer.android.com/reference/android/view/GestureDetector.html 
You can use Gesture Detector class so detect left,rigth,up down swipes