I'm developing an android app that User select an emoticon. I'd like a nice swipe gesture selection with horizontal scroll. can i create a horizontal scroll to select emotion.
this is an example
I'm developing an android app that User select an emoticon. I'd like a nice swipe gesture selection with horizontal scroll. can i create a horizontal scroll to select emotion.
this is an example
Have you tried using GestureDetector.OnGestureListener
?
http://developer.android.com/reference/android/view/GestureDetector.OnGestureListener.html
I think onScroll() is just vertical, but I might be wrong; onFling() is definitely horizontal but requires a bit of velocity.
If you haven't looked at GestureDetector, then you should write a simple demo for yourself with it in any case.
On the jpeg it looks like you are after a very specific hook like curve. If that's the case, then you need to implement detection yourself using the lower level, more flexible View.OnTouchListener
.
http://developer.android.com/reference/android/view/View.OnTouchListener.html