Commit e1de6099 by 霍志良

feat:hide软键盘

parent 4f1c506f
...@@ -180,6 +180,7 @@ class InputPassWordActivity : BaseMvpActivity<IInputPassWordContract.View,IInput ...@@ -180,6 +180,7 @@ class InputPassWordActivity : BaseMvpActivity<IInputPassWordContract.View,IInput
} }
} }
login_password.setOnClickListener { login_password.setOnClickListener {
RxKeyboardTool.hideKeyboard(this@InputPassWordActivity,login_password)
//下一步 //下一步
if (STATUS_INPUT_PWD == codeStatus) { if (STATUS_INPUT_PWD == codeStatus) {
......
...@@ -5,6 +5,7 @@ import android.app.Activity ...@@ -5,6 +5,7 @@ import android.app.Activity
import android.content.Context import android.content.Context
import android.content.Intent import android.content.Intent
import android.net.Uri import android.net.Uri
import android.os.Build
import android.support.v4.content.ContextCompat import android.support.v4.content.ContextCompat
import android.text.TextUtils import android.text.TextUtils
import android.view.View import android.view.View
...@@ -279,7 +280,9 @@ class VerificationCodeActivity : ...@@ -279,7 +280,9 @@ class VerificationCodeActivity :
override fun verificationErrorCode() { override fun verificationErrorCode() {
//验证码异常回调 //验证码异常回调
verify_code.highlightSingleFieldType= HighlightType.ALL_FIELDS verify_code.highlightSingleFieldType= HighlightType.ALL_FIELDS
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
verify_code.highlightPaintColor=getColor(R.color.user_bgcolorred) verify_code.highlightPaintColor=getColor(R.color.user_bgcolorred)
}
verify_code.invalidate() verify_code.invalidate()
dismissProgressDialog() dismissProgressDialog()
val shake = AnimationUtils.loadAnimation(this, R.anim.user_shake_input)//加载动画资源文件  val shake = AnimationUtils.loadAnimation(this, R.anim.user_shake_input)//加载动画资源文件 
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment