0

In my app, I want that using finger movement from left-to-right in Activity A should call Activity B. Similarly, if i move it right-to-left, it should go back to the previous Activity, i.e, Activity A.

How to achieve this?

Lokesh Mehra
  • 545
  • 6
  • 16

2 Answers2

0

Well there are several ways to achieve what you're talking about.

You could use the gesture builder to listen for a swipe and then fire your intents to start the activity.

Without knowing more, you may also want to look at page viewer.

John Kugelman
  • 349,597
  • 67
  • 533
  • 578
Frank Sposaro
  • 8,511
  • 4
  • 43
  • 64
0

you have to define your gestures with the android gesture tool then you have to implement a gesture listener to listen for gesture events

Basic Gesture Detection - stackoverflow

Introduction to Gestures - mobile tuts


Source: Android: Slide gesture and animation for switching between tabs

Community
  • 1
  • 1
Farzan
  • 745
  • 10
  • 25