我在 android 手势示例中注意到,它从 res/raw 文件夹中读取手势。对于我的应用程序来说,包含“入门”手势列表将是一件很棒的事情。这样,用户就可以使用该应用程序,而无需针对自己的个人手势进行训练。我什至希望大多数用户会乐意使用一组默认手势。
但是,我不知道如何生成将包含在应用程序的 res/raw 文件夹中的初始手势集。
有人知道如何创建此文件或在哪里查找更多信息吗?
I have noticed in the android gesture examples, that it reads the gestures from the res/raw folder. it would be a great thing for my application to include a 'getting started' list of gestures. that way a user can use the app without having to train it for their own personal gestures. i would even expect that the majority of users would be happy to use a default set of gestures.
however, i cannot figure out how to generate that initial set of gestures that i would include in the res/raw folder of my application.
anyone have ideas of how to create this file or where to look for more info?
发布评论
评论(3)
使用手势生成器工具。
更新:显然,该工具已不再存在,抱歉。
Use the Gestures Builder tool.
UPDATE: Apparently, that tool no longer exists, sorry.
下载此示例项目“Gesture Builder”来创建手势文件。该手势文件将保存到您的 SD 卡中,将其复制并粘贴到项目的原始文件夹中。
https://android.googlesource.com/platform/development/+/主控/应用程序/GestureBuilder/
Download this sample project "Gesture Builder" to create gesture file. This gesture file will be saved to your SD card , copy and paste it to your project's raw folder.
https://android.googlesource.com/platform/development/+/master/apps/GestureBuilder/
以下是 Play 商店链接:手势生成器
您可以开始构建您的模式,并且文件将保存在 SD 卡中,名称为
gestures
Here is the playstore link : Gesture Builder
You can start building your patterns and a file is saved in SD card with name
gestures