Sunday, October 25, 2009

Android: Gesture

http://android-developers.blogspot.com/2009/10/gestures-on-android-16.html
http://code.google.com/p/apps-for-android/downloads/detail?name=GesturesDemos.zip&can=2&q=#makechanges
http://www.androidres.com/index.php/2009/10/16/introduce-how-to-use-gestures-api-in-android/

1. Creating a gestures library
Using GestureBuilder in development/apps. It will generate a file in /sdcard/gestures, put it into your project res/raw


2. Loading the gestures library
Using GestureLibraries.fromRawResouce()

3. Recognizing gestures
Using onGesturePerformed

No comments:

Related Posts Plugin for WordPress, Blogger...