按钮矩阵,如安全模式面板
我想制作一个按钮矩阵,当单击一个按钮时,画一条线连接到矩阵的另一个按钮。
事实上,就像标题所说,我想要一种与安全模式非常相似的行为,至少是外观。
有没有地方有安全模式的源代码可以看看他们是如何做到的? 或者也许有什么关于我自己构建它的建议?
谢谢!
I want to make a matrix of buttons and, while a button gets clicked draw a line that will connect to another button of the matrix.
In factm like the title said, I want a behaviour very similar to the security pattern, at least the appereance.
Is there any place with the source code of the security pattern to see how they did it?
Or maybe any recommendation for building it on my own?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的,我认为您想要 LockPatternUtils.java 的源代码,尽管我没有详细查看。
http://www.java2s.com/Open-Source/Android/android-core/platform-frameworks-base/com/android/internal/widget/LockPatternUtils.java.htm
Yes I think you want the source of LockPatternUtils.java, although I haven't looked in detail.
http://www.java2s.com/Open-Source/Android/android-core/platform-frameworks-base/com/android/internal/widget/LockPatternUtils.java.htm
使用表格布局。您可以将按钮放置在其行和列中。
Use TableLayout. You can place your buttons in it's rows and columns.
官方来源在这里:
http://code.google.com/p/android-lockpattern/source/browse/src/group/pals/android/lib/ui/lockpattern/widget/LockPatternUtils.java?r=7470bc287cba61198430e3d8aff32196bb5824a0< /a>
The official source is here:
http://code.google.com/p/android-lockpattern/source/browse/src/group/pals/android/lib/ui/lockpattern/widget/LockPatternUtils.java?r=7470bc287cba61198430e3d8aff32196bb5824a0