Have a look at the implementation method of Hongyang’s blog article. Lines are drawn using canvas. By default, the lines drawn later will be displayed on it. If the subject wants to hide the internal lines, he or she will not draw them at the beginning (in Reset the xy coordinates of the lead in GestureLockViewGroup and cut off part of it), or redraw the GestureLockView to cover the lead.
Have a look at the implementation method of Hongyang’s blog article. Lines are drawn using canvas. By default, the lines drawn later will be displayed on it. If the subject wants to hide the internal lines, he or she will not draw them at the beginning (in Reset the xy coordinates of the lead in GestureLockViewGroup and cut off part of it), or redraw the GestureLockView to cover the lead.