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.
我想开发一个解锁器。您可以通过向右滑动来解锁(就像在 iPhone 上一样)。
实现这一点的最佳方法是什么?我应该使用 ViewFlipper 和 GestureDetector 吗?我已经尝试过了,但我可以在屏幕上的任意位置滑动来解锁。ViewFlipper 的 ImageView 应该用我的手指滑动,并且只有当我的手指直接在 imageView 上时。
尝试查看此问题以了解图像上的手势或任何与此相关的视图。