I have list on android. Each time user slide screen left or right I need to show them single item with details. Which method should I use for this situation.
Example screenshots:
First Item
first item http://imageshack.us/a/img707/9789/slide1t.png
Second Item appears when user slide to left
I found simple solution for my question. ViewSwitcher with OnGestureListener solves my problem.
http://www.youtube.com/watch?v=mGwG8-chUEM
References:
ViewFlipper: http://developer.android.com/reference/android/widget/ViewFlipper.html
ViewSwitcher: http://developer.android.com/reference/android/widget/ViewSwitcher.html
GestureDetector.OnGestureListener: http://developer.android.com/reference/android/view/GestureDetector.OnGestureListener.html
Source Code:
http://www.mediafire.com/?fg32sn1345xn5dl
My activity doesn’t have all code, so maybe it may not work. But logic is here.
——-My solution——–
-Activity-
}