I want to learn how can I scroll/swipe it up or down. I'm using viewPager to scroll right. But it is not proper to up/down swiping or I could not
Asked
Active
Viewed 394 times
-2
-
hi, I learned that how to do that requirement. I handle it with GestureDetection onFling method. This link may also help you too: http://stackoverflow.com/questions/14931510/android-gesture-detection-swipe-up-down-on-particular-view – elifekiz Sep 07 '16 at 14:14
1 Answers
1
Here is a documentation which contains information to help it locate a matching view at runtime. You can use the methods boolean swipeDown (int steps) and boolean swipeUp (int steps). You can also check this related SO question - How to implement gesture recognition in android wear. You must disable the Swipe-To-Dismiss Gesture and add DismissOverlayView to your layout.
-
however, it causes some performans problems because of movement calculation time on fling method – elifekiz Aug 09 '16 at 12:36