开发者

Matrix of buttons like Security Pattern Pannel

I want to make a matrix of buttons and, while a button gets c开发者_如何学编程licked 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!


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜