問題描述
Android中的手勢 (Gestures in Android)
There are more than 30 pictures in my android app.. I'm planning to show one image at a time when the user swipes left or right.
What is the best way to do this? Can you please point some working examples?
‑‑‑‑‑
參考解法
方法 1:
Try using Gallery . Here is the link ‑ http://developer.android.com/reference/android/widget/Gallery.html
And
http://www.mobisoftinfotech.com/blog/android/android‑gallery‑widget‑example‑and‑tutorial/
方法 2:
see this ...
http://developer.android.com/reference/android/view/GestureDetector.html
You can use Gesture Detector class so detect left,rigth,up down swipes
(by Naveen、Anukool、akash yadav)