Gesture Builder in API 27

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 02:45:37

问题


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

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.GestureApp But when I try to read the file like this:

        gLibrary = GestureLibraries.fromRawResource(this, R.raw.gesture);

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.

I also tried to get a old (API 17) version running: https://github.com/Miserlou/Android-SDK-Samples but I just got errors over and over again.

So lets get to my question. How to build a gesture file today with API 26/27 or how to get the old Gesture Builder (running).


回答1:


I solve this problem by downloading all API 27 package



来源:https://stackoverflow.com/questions/48358964/gesture-builder-in-api-27

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!