Hi, I am developing an application using TableView and binded "onSwipe" event to the TableViewRow as following:(I also tried bind it on TablwView, it is not work as well)
<TableViewRow class="swipable-item" onSwipe="showOperations">
function showOperations(e){ Ti.API.info("Swipe event detected"); if(e.direction == 'left'){ e.row.children[0].applyProperties({left: '-50'}); e.row.children[1].applyProperties({visible: true}); } else if(e.direction == "right"){ e.row.children[0].applyProperties({left: '0'}); e.row.children[1].applyProperties({visible: false}); } e.cancelBubble = true; }The above code works perfectly on iPhone simulator. However, when I test it on AVD(Android), it is not working.
The most wired thing is when I add a break point to showOperations function, it always shows me that (No matter which direction I swipe to!!)
e.direction = 'up'which according to the document, it should only give me "left"/"right". So I cannot understand why this is happening. Furthermore, it still goes through the first part of the condition regardless e.direction == 'true' has returned 'false'. So I really got confused how the things event linked together.
Any suggestions???