PatternLockView icon indicating copy to clipboard operation
PatternLockView copied to clipboard

How to use SetPattern method?

Open Mateeen opened this issue 5 years ago • 5 comments

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 avatar Jul 09 '18 08:07 Mateeen

@Mateeen mPatternLockView.setPattern(PatternLockView.PatternViewMode.AUTO_DRAW,PatternLockUtils.stringToPattern(mPatternLockView,"12345"));

“12345” is your want to selected dot

wzxlucky avatar Jan 10 '19 00:01 wzxlucky

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".

buffermet avatar Jun 02 '19 11:06 buffermet

https://github.com/aritraroy/PatternLockView/issues/31 is related bug

buffermet avatar Jun 05 '19 12:06 buffermet

@aritraroy please see my proposed fix https://github.com/aritraroy/PatternLockView/pull/32

thanks

buffermet avatar Jun 06 '19 13:06 buffermet

@aritraroy bump...

buffermet avatar Sep 06 '19 06:09 buffermet