问题描述
我尝试在Android中学习手势处理,并且尝试了本教程:www.techotopia.com/index.php/Implementing_Android_Custom_Gesture_Recognition_with_Android_Studio
I try to learn Gesture Handling in Android and I tried this tutorial: www.techotopia.com/index.php/Implementing_Android_Custom_Gesture_Recognition_with_Android_Studio
我的问题是,我无法在Android Studio 3.0.1中下载SDK的示例,因为没有这样的选项:因此,我在Appstore上试用了该应用程序: https://play.google. com/store/apps/details?id = pack.GestureApp 但是,当我尝试像这样读取文件时:
My problem is, that I can not download Samples for SDK in my Android Studio 3.0.1 because there is just no option called like that:So I tried this App on Appstore: https://play.google.com/store/apps/details?id=pack.GestureAppBut when I try to read the file like this:
gLibrary = GestureLibraries.fromRawResource(this, R.raw.gesture);
gLibrary始终为空.因此,我尝试在此处找到官方的Gesture Builder应用程序: https://developer.android.com/samples/index.html 并在Android Studio中:File/New/Import Sample:如您所见,那里也没有.
the gLibrary is always empty.So I tried to find the official Gesture Builder Application here: https://developer.android.com/samples/index.html and in Android Studio: File/New/Import Sample:as u can see, nothing there too.
我还尝试运行旧版本(API 17): https://github .com/Miserlou/Android-SDK-Samples 但是我一遍又一遍地犯了错误.
I also tried to get a old (API 17) version running: https://github.com/Miserlou/Android-SDK-Samplesbut I just got errors over and over again.
因此,让我们开始我的问题.今天如何使用API 26/27构建手势文件,或者如何(运行)获取旧的Gesture Builder.
推荐答案
我通过下载所有API 27软件包来解决此问题
I solve this problem by downloading all API 27 package
这篇关于API 27中的手势生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!