views:

190

answers:

1

I'm sure this has been answered somewhere, already, but I just can't find it: I have a TabHost with three tabs, each containing different views (not Activities). What I want is to make a swiping gesture from right to left and let the current view slide out to the left and the next view slide in from the right, thus changing the current tab. So, I want the switch between tabs to be triggered by a gesture (rather than only by clicking on the tab) and also want to show an animation when the current tab is changed.

I looked at the ViewFlipper examples and tutorials, but I can't find one that explains how to do this to slide between tabs.

Again, sorry if this has been answered before, I just can't find it.

A: 

Basic Gesture Detection - stackoverflow

Introduction to Gestures - mobile tuts

you have to definde your gestures with the android gesture tool (you can find it in the emulator) and implement a gesture listener to listen for gesture events.

ArtWorkAD