Android Question Simple Swipe Directions

505sw

Member
Licensed User
Longtime User
Is there a simple way to determine basic swipe directions? I want to have the user press a button and then find which direction the user swiped from there. (L,R,U,D)
 

505sw

Member
Licensed User
Longtime User
Thanks for the quick reply. I looked over some the gestures samples but it looked far more involved than where I care to go right now. I'm an old school 6502 programmer and I've recently written some apps in MS VB for the PC. I just recently started coding for Android and I'm trying to build up my expertise while trying to publish my first app quickly, if I can. So in short, there's no simple way to detect a swipe direction?
 
Upvote 0

505sw

Member
Licensed User
Longtime User
The Gesture Demo is devoid of comments, no mention of directions, applies to a panel which would likely be blocked by my button and doesn't even run on my Note 2. I get a screen with some colored blocks which does nothing else. Can you be a little more specific as what I need to reference for gestures? Thank you.
 
Upvote 0

505sw

Member
Licensed User
Longtime User
This works great if there's nothing on the screen. Unfortunately, if I swipe starting on a button, label or small bitmap, the event handler returns nothing.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…