search

Home  >  Q&A  >  body text

android 手势解锁 布局问题

           图(一)
           
           

           图(二)

上面图(一)是支付宝的截图,也是我想要实现的效果
下面是我实现的(参考博客 http://blog.csdn.net/lmj62356...)
现在的问题是:不想要圆内部的线条,需要画成类似支付宝【图(一)】的样子

支付宝两个圆之间的连线是怎么实现的?

1.从两个圆心之间开始画线,将处于圆内部的线条影藏?

2.从两个圆的圆弧上开始画线

或者其他?

谢谢大家

ringa_leeringa_lee2773 days ago598

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-04-17 17:49:02

    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.

    reply
    0
  • Cancelreply