|  | @@ -3,6 +3,7 @@ package com.yingyang.login.ui.login
 | 
	
		
			
				|  |  |  import android.annotation.SuppressLint
 | 
	
		
			
				|  |  |  import android.graphics.Typeface
 | 
	
		
			
				|  |  |  import android.os.Build
 | 
	
		
			
				|  |  | +import android.text.InputType
 | 
	
		
			
				|  |  |  import android.text.SpannableString
 | 
	
		
			
				|  |  |  import android.text.Spanned
 | 
	
		
			
				|  |  |  import android.text.style.ForegroundColorSpan
 | 
	
	
		
			
				|  | @@ -16,7 +17,6 @@ import com.yingyang.login.R
 | 
	
		
			
				|  |  |  import com.yingyang.login.databinding.ActivityLoginBinding
 | 
	
		
			
				|  |  |  import com.yingyangfly.baselib.ext.getEndAnimation
 | 
	
		
			
				|  |  |  import com.yingyangfly.baselib.ext.getScaleAnimation
 | 
	
		
			
				|  |  | -import com.yingyangfly.baselib.ext.show
 | 
	
		
			
				|  |  |  import com.yingyangfly.baselib.ext.toast
 | 
	
		
			
				|  |  |  import com.yingyangfly.baselib.mvvm.BaseMVVMActivity
 | 
	
		
			
				|  |  |  import com.yingyangfly.baselib.router.RouterUrlCommon
 | 
	
	
		
			
				|  | @@ -301,18 +301,25 @@ class LoginActivity : BaseMVVMActivity<ActivityLoginBinding, LoginViewModel>(),
 | 
	
		
			
				|  |  |          val index = tab?.position ?: 0
 | 
	
		
			
				|  |  |          loginType = index
 | 
	
		
			
				|  |  |          if (index == 0) {
 | 
	
		
			
				|  |  | -            binding.username.hint = "请输入用户名"
 | 
	
		
			
				|  |  | -            binding.password.hint = "请输入密码"
 | 
	
		
			
				|  |  | -            binding.tvCode.post {
 | 
	
		
			
				|  |  | -                binding.tvCode.clearAnimation()
 | 
	
		
			
				|  |  | -                binding.tvCode.visibility = View.GONE
 | 
	
		
			
				|  |  | +            binding {
 | 
	
		
			
				|  |  | +                username.hint = "请输入用户名"
 | 
	
		
			
				|  |  | +                password.hint = "请输入密码"
 | 
	
		
			
				|  |  | +                password.inputType = InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_VARIATION_PASSWORD
 | 
	
		
			
				|  |  | +                tvCode.post {
 | 
	
		
			
				|  |  | +                    tvCode.clearAnimation()
 | 
	
		
			
				|  |  | +                    tvCode.visibility = View.GONE
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  | -            binding.username.hint = "请输入手机号"
 | 
	
		
			
				|  |  | -            binding.password.hint = "请输入验证码"
 | 
	
		
			
				|  |  | -            binding.tvCode.post {
 | 
	
		
			
				|  |  | -                binding.tvCode.visibility = View.VISIBLE
 | 
	
		
			
				|  |  | +            binding {
 | 
	
		
			
				|  |  | +                username.hint = "请输入手机号"
 | 
	
		
			
				|  |  | +                password.hint = "请输入验证码"
 | 
	
		
			
				|  |  | +                password.inputType = InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD
 | 
	
		
			
				|  |  | +                tvCode.post {
 | 
	
		
			
				|  |  | +                    tvCode.visibility = View.VISIBLE
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          tab?.customView?.findViewById<TextView>(R.id.tv_tab)?.isSelected = false
 | 
	
		
			
				|  |  |      }
 |