Android 按钮和触摸事件
你好,我正在开发 Android 的模式锁。 我可以使用什么或什么方法将我在屏幕上绘制的圆圈(图案)放在触摸时听,并将它们放入数组中?
我也有绘制为按钮的矩形..但运动事件没有监听它们。 请帮忙。
Hi I am developing the pattern locker for android.
How or what method can I use to put the circles (pattern) i have drawn on the screen to be listened to, when touched and place them in an array?
I also have rectangles i have drawn as buttons..but the motion event is not listening to them.
please help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定“点滑动储物柜”是什么,并且快速谷歌搜索没有返回任何相关内容,但我只能假设您正在尝试模仿 Android 图案锁定屏幕的功能?你检查过Android源代码看看他们是如何实现的吗?
http://www.google.com/codesearch/p?hl=en#ohAXAHj6Njg/src/com/android/settings/ChooseLockPattern.java&q=ChooseLockPattern.java&sa =N&cd=1&ct=rc
I'm not sure what the "dot swipe locker" is and a quick Google search didn't return anything relevant, but I can only assume you are trying to mimic the functionality of the Android pattern lock screen? Have you checked out the Android source code to see how they implement it?
http://www.google.com/codesearch/p?hl=en#ohAXAHj6Njg/src/com/android/settings/ChooseLockPattern.java&q=ChooseLockPattern.java&sa=N&cd=1&ct=rc