迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Android-LockView开源软件地址:https://gitee.com/_Courser/Android-LockView开源软件介绍:#Android-LockViewI code this for my another project and share it.Originally wanted to find an open source control with a look, but did not search to the right. So write an unlock control. if you have any question, please contact me.E-mail: [email protected] Usage: <com.mahao.team42.lockview.widget.LockView android:id="@+id/activity_main_lockView" android:layout_width="300dp" android:layout_height="300dp" android:layout_centerInParent="true" /> //set line color this.lockView.setColorLine(Color.RED); //set circle color this.lockView.setColorCircle(Color.GREEN); //set point color this.lockView.setColorPoint(Color.BLUE); //set column and row count this.lockView.setSpanCount(3); //set min point count to finish this.lockView.setMinPointCount(3); //set inner point circle radius this.lockView.setInnerCircleRadius(0.2F); //set inner trigger circle radius this.lockView.setInnerTriggerCircleRadius(0.8F); //set outer circle radius this.lockView.setOuterCircleRadius(1.0F); //set set trigger circle show this.lockView.setTriggerCircleShow(true); //set listner this.lockView.setOnLockFinishListener(new OnLockFinishListener() { @Override public void onFinish(List<Integer> result) { //TODO } }); ![]() |
请发表评论