Changes

Jump to: navigation, search
Creating an Example Gesture Detection Project
Begin, therefore, by launching Eclipse and creating an Android Application Project named CommonGestures with the appropriate package name and SDK selections. As with previous examples, request the creation of a blank activity and the use of the default launcher icons. On the New Blank Activity screen of the New Android Application wizard, set the Activity Name to CommonGesturesActivity and the Layout Name to activity_common_gestures.
Once the new project has been created, the activity_common_gestures file should be automatically selected by Eclipse and displayed in the Graphical Layout tool. If this is not the case, double click on the CommonGestures -> res -> layout -> activity_common_gestures.xml file in the Package Explorer to load it.
Within the Graphical Layout tool, right-click on the Hello, World! TextView component and select Assign ID… from the resulting menu. In the subsequent dialog, enter gestureStatusText as the ID. Move the TextView so that it is positioned in the center of the display and then save the layout file before proceeding.

Navigation menu