1.编写文本控件
<EditText
android:id="@+id/login_edit"
android:paddingLeft="50dp"
android:hint="请输入验证码"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
2.编写按钮控件
<Button
android:id="@+id/login_btn"
android:text="验证码"
android:layout_width="wrap_content"
android:layout_height="40dp"/>
3.在Activity获取控件id,然后再用获取到的button的id设置点击事件
4.用Timer编写倒计时,不能在子线程中编写,使用要加个
runOnUiThread(new Runnable() {}
5.在此