Touch Swipe Gestures

173 views
Skip to first unread message

asu

unread,
Jan 28, 2016, 5:18:22 AM1/28/16
to DroidScript
Hello,

I have not yet found out how to use Touch Gestures for changing between screens (layout). E.g. I try to have a solution to change to a next/previous screen by swiping left or rigth on the current screen. For this I assume I would have to react on touch events on layouts to change to active layout.

Any help is very much appreciated.

Cheers
Asu


Seyfican Zeyrek

unread,
Jan 31, 2016, 3:45:31 PM1/31/16
to DroidScript
you can try;
layout.Animate ("SlideFromLeft");

asu

unread,
Feb 3, 2016, 11:36:01 AM2/3/16
to DroidScript
yes sure. But before that I would have to recognize the touch gesture as a swipe from left to right.

Steve Garman

unread,
Feb 3, 2016, 11:22:26 PM2/3/16
to DroidScript
There is no built-in way in DS to detect swipes.

You can often overlay the swipeable area with an invisible image control and adapt the technique used here.

http://wiki.droidscript.me.uk/doku.php?id=sample_code:slide_menu

Reply all
Reply to author
Forward
0 new messages