I have implemented my TabActivity with different child activities:
intent = new Intent().setClass(this, MyChildTabActiviy.class);
// Initialize a TabSpec for eac
Have a look at the answer mentioned here. He's pretty much done the same thing as you, but if you look at the first comment on the highest rated answer, Cdsboy got it working by implementing OnDown and returning true. I'm not sure why that is needed, but it worked for me.
As a complement to @Abhinav 's answer (that btw helped me too), I'd like to say that I think overriding onDown()
is needed because its default implementation in SimpleOnGestureListener
is to return false
. Being ACTION_DOWN
the first one to reach the listener, it would make it discard the event, whatever it is.