Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
NativeActivity 是否可以访问 GestureDetector 并将事件绑定到它?
我在想这可能不得不通过 JNI,很痛苦。
是的,您必须使用 JNIEnv 来访问 GestureDetector - 它是 Java 类。
所有 C API 都列在STABLE-APIS.html文件docs夹下的文件中。
STABLE-APIS.html
docs