PatternLockView
PatternLockView copied to clipboard
How to use SetPattern method?
Actually on the wrong pattern entered we want to set the color of paths and dots to red. How can we achieve this functionality? and also SetPattern use.
@Mateeen mPatternLockView.setPattern(PatternLockView.PatternViewMode.AUTO_DRAW,PatternLockUtils.stringToPattern(mPatternLockView,"12345"));
“12345” is your want to selected dot
Just using digits is not a good selector for pattern dots, because the tenth, eleventh and twelfth dot will be interpreted as "1", "0"
, "1", "1"
, and "1", "2"
, etc.
There should be a separator between each digit (a comma for example), so that we can differentiate between "1", "0"
, and "10"
.
https://github.com/aritraroy/PatternLockView/issues/31 is related bug
@aritraroy please see my proposed fix https://github.com/aritraroy/PatternLockView/pull/32
thanks
@aritraroy bump...