1.效果图:
2.主界面
package com.example.admin.zkotlin
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.text.method.HideReturnsTransformationMethod
import android.text.method.PasswordTransformationMethod
import android.view.SurfaceHolder
import android.view.SurfaceView
import android.view.View
import kotlinx.android.synthetic.main.activity_photo.*
class MainActivity : AppCompatActivity(), View.OnClickListener {
private var mSurfaceView: SurfaceView? = null
private var mSurfaceHolder: SurfaceHolder? = null
private var showPassword = true
var currentProgress = 0
//参考网站: https://blog.csdn.net/qq_34471736/article/details/67637694
override f