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.
我正在使用带有 pinchzoom 的图像视图。但我不能将它与 SDK 版本 4 一起使用。在 ACTION_POINTER_UP、get(0) 和 MotionEvent.ACTION_MASK 中出现错误。当最小 sdk 设置为 5 并选择 API 级别 5 的 Google API 时,它可以正常工作。
我的问题是 我可以用 google api 触发 ACTION_POINTER_UP [级别 4]
问题是多点触控是从 API 5 开始的。在 API 4 中,您只能通过调用 get() 而不是 get(0) 获得 1 个指针,而且在 API 4 中没有 ACTION_POINTER_UP,只有 ACTION_UP