Document directory
- Create a gesture Library:
- Use the example GestureBuilder that comes with the SDK to create a gesture library. This folder exists in android \ android-sdk-windows \ samples \ android-10 \ GestureBuilder, you need to restore it to the development environment before using it, and then run its project to set the gesture.
- Step 1:
- Create a project named GestureBuilder (during creation, the activity can be required or not, because it will be overwritten later)
- Step 2:
- Open the created project and we all know what files are in it,
- Open the folder of the SDK's own example and there will be the following five files:
- Copy the first four files to the file of the project we created, and overwrite the existing and overwritten folder (the selected one is copied ):
- Step 3:
- Now open Eclipse, refresh the project, and then you can run the project.
- After running, it displays:
- Then select
- Then draw a graph and give it a name:
- Click the Done button if you want it (it will be saved to the file)
- If you are not satisfied with the problem, click on the black screen to reproduce the painting.
- Based on this step, you can customize any gesture you want. The defined gestures will be saved to the mnt/sdcard directory:
- To use this gesture library, you need to export the file, select the file, click the icon in, and export it to your specified location:
- In this way, you can copy the exported file directly if you want to use it.
-
Create a gesture Library: use the example GestureBuilder that comes with the SDK to create a gesture library. This folder exists in android \ android-sdk-windows \ samples \ android-10 \ GestureBuilder, you need to restore it to the development environment before using it, and then run its project to set the gesture. Step 1: Create a project named GestureBuilder. (During activity creation, do you want to overwrite it later?) Step 2: Open the created Project, we all know what files are in it,
Open the folder of the SDK's own example and there will be the following five files:
Copy the first four files to the file of the project we created, and overwrite the existing and overwritten folder (the selected one is copied ):
Step 3: Open Eclipse, refresh the project, and then run the project. After running, it displays:
Then select
Then draw a graph and give it a name:
Click the Done button if you want it (it will be saved to the file)
If you are not satisfied with the need to re-draw, click on the black screen and you can re-draw. Based on this step, you can customize any gesture you want, the defined gestures are saved to the mnt/sdcard directory:
To use this gesture library, you need to export the file, select the file, click the icon in, and export it to your specified location:
In this way, you can copy the exported file directly if you want to use it.