| | |
| | | private void switchPhoneOrMailView() { |
| | | if (isPhoneType) { |
| | | //手机号 |
| | | viewBinding.changePhoneIc.accountTitleTv.setText(R.string.home_login_手机号); |
| | | viewBinding.changePhoneIc.accountTitleTv.setText(R.string.home_login_phone); |
| | | viewBinding.changePhoneIc.accountTitleTv.setTextSize(20); |
| | | viewBinding.changePhoneIc.accountTitleTv.setTextColor(getResources().getColor(R.color.text_90000000)); |
| | | viewBinding.changePhoneIc.lineV.setVisibility(View.VISIBLE); |
| | | |
| | | viewBinding.changeMailRl.accountTitleTv.setText(R.string.home_login_邮箱); |
| | | viewBinding.changeMailRl.accountTitleTv.setText(R.string.home_login_email); |
| | | viewBinding.changeMailRl.accountTitleTv.setTextSize(16); |
| | | viewBinding.changeMailRl.accountTitleTv.setTextColor(getResources().getColor(R.color.text_40000000)); |
| | | viewBinding.changeMailRl.lineV.setVisibility(View.GONE); |
| | | |
| | | //输入手机号 |
| | | viewBinding.changeAccountEt.setInputType(InputType.TYPE_CLASS_NUMBER); |
| | | viewBinding.changeAccountEt.setHint(R.string.home_login_请输入手机号); |
| | | viewBinding.changeAccountEt.setHint(R.string.home_login_input_phone); |
| | | //显示手机号验证码,隐藏邮箱验证码, |
| | | viewBinding.changePhoneVerificationCodeRl.setVisibility(View.VISIBLE); |
| | | viewBinding.changeMailVerificationCodeRl.setVisibility(View.GONE); |
| | |
| | | |
| | | } else { |
| | | //邮箱 |
| | | viewBinding.changePhoneIc.accountTitleTv.setText(R.string.home_login_手机号); |
| | | viewBinding.changePhoneIc.accountTitleTv.setText(R.string.home_login_phone); |
| | | viewBinding.changePhoneIc.accountTitleTv.setTextSize(16); |
| | | viewBinding.changePhoneIc.accountTitleTv.setTextColor(getResources().getColor(R.color.text_40000000)); |
| | | viewBinding.changePhoneIc.lineV.setVisibility(View.GONE); |
| | | |
| | | viewBinding.changeMailRl.accountTitleTv.setText(R.string.home_login_邮箱); |
| | | viewBinding.changeMailRl.accountTitleTv.setText(R.string.home_login_email); |
| | | viewBinding.changeMailRl.accountTitleTv.setTextSize(20); |
| | | viewBinding.changeMailRl.accountTitleTv.setTextColor(getResources().getColor(R.color.text_90000000)); |
| | | viewBinding.changeMailRl.lineV.setVisibility(View.VISIBLE); |