I have been trying to swipe a view for android in appcelerator in a particular direction gesture,but to my dismay the code seems unresponsive.i googled to find out the exact reason,but din't hit the bull's eye,all i could manage was that it is not supported for android.When i remove the parameter from the listener & doesnot take into account any direction,the event listener seems to work,but for a particular direction it fails :(
Any valueable comments would be appreciated to guide me through;
Following is my Code:
myView.addEventListener("swipe",function(e){ Ti.API.info('direction'+e.direction); if (e.direction == "right" ) { doSomething();
else
{
doSomethingElse();
}
});