Android development path-creating a gesture Library

Source: Internet
Author: User
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.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.