スワイプで戻る。swipe gesture android | titanium

2013/03 1年ほど前にandroid swipe実装されていました。
新記事修正版を更新。http://blog.bbtune.com/archives/2515/titanium-android-swipe

スワイプで戻る。を設定してみた。

android タッチの始点と終点で・・・

resultListWin.addEventListener('touchstart', function (e) {
    resultListWin.x_start = e.x;
    resultListWin.y_start = e.y;
});
resultListWin.addEventListener('touchend', function (e) {
	if( resultListWin.x_start !== 'undefined'){
  	    if(e.x  > resultListWin.x_start) { // right
    	 	backView(); // **** like swiping
    	} else { // left
    	}
	}
});

http://code.google.com/p/titanium-mobile-doc-ja/wiki/Views

2013/03 1年ほど前にandroid swipe実装されていました。
新記事修正版を更新。http://blog.bbtune.com/archives/2515/titanium-android-swipe

This entry was posted on 木曜日, 11月 17th, 2011 at 11:59 PM and is filed under Android, Titanium. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Unityによるゲームを公開しております iOS/Android
https://itunes.apple.com/jp/app/lost-knight-3d-action/id900917032
https://play.google.com/store/apps/details?id=com.groundroad.runknight

各種開発支援・機能開発等小さいお仕事などもお請けしております。
unity開発支援, PHPシステム開発, javascript/html5 フロント開発, titanium mobileアプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。