• Home
  • Raw
  • Download

Lines Matching refs:gestures

11 difficult to handle complicated gestures, sometimes requiring 
14 <p>That's why we introduced a new gestures API in Android 1.6. This API, located
16 recognize gestures. This article will show you how you can use the
23 <h3>Creating a gestures library</h3>
27 a set of pre-defined gestures for your own application. It also serves as an
28 example of how to let the user define his own gestures in your applications. You
31 gestures for us (make sure to create an AVD with an SD card image to use
33 after adding a few gestures:</p>
40 gestures with the same name to increase the precision of the recognition. Every
42 the emulator's SD card, <code>/sdcard/gestures</code>. This file contains the
43 description of all the gestures, and you will need to package it inside your
47 <h3>Loading the gestures library</h3>
49 <p>Now that you have a set of pre-defined gestures, you must load it inside your
66 <h3>Recognizing gestures</h3>
68 <p>To start recognizing gestures in your application, all you have to do
72 android:id="@+id/gestures"
80 drawing board on which the user can draw his gestures. You can tweak
82 used to draw gestures, and register various listeners to follow what
87 <pre>GestureOverlayView gestures = (GestureOverlayView) findViewById(R.id.gestures);
88 gestures.addOnGesturePerformedListener(this);</pre>
116 recognize pre-defined gestures (see the source code of the project
119 <img src="images/gestures.png" style="width: 320px; height: 480px;">
126 of other views. This can be useful to recognize gestures in a game or
130 pre-defined gestures:</p>
138 android:id="@+id/gestures"
153 <p>In this application, the gestures view is an overlay on top of a regular
159 whether we want to recognize gestures made of a single stroke or
160 multiple strokes. Since one of our gestures is the "+" symbol, we need
169 the list scrolls vertically, which means that any horizontal gestures
177 <p>The code used to load and set up the gestures library and overlay is exactly
195 <p>The user is now able to draw his gestures on top of the list without
209 <p>Adding support for gestures in your application is easy and can be a valuable
210 addition. The gestures API does not even have to be used to recognize complex
212 excited by the possibilities the gestures API offers, and we're eager to see