| | |
| | | * 初始化 |
| | | */ |
| | | private void initView() { |
| | | viewBinding.toolbarTopRl.topBarView.setBackgroundColor(getResources().getColor(R.color.text_FFECECEC, null)); |
| | | viewBinding.toolbarTopRl.topTitleTv.setText(R.string.home_login_change_password); |
| | | viewBinding.toolbarTopRl.topTitleTv.setTextColor(getResources().getColor(R.color.text_030D1C, null)); |
| | | viewBinding.toolbarTopRl.topBackLl.setVisibility(View.VISIBLE); |
| | | viewBinding.toolbarTopRl.topLeftIv.setImageResource(R.drawable.back_c); |
| | | viewBinding.meChangePasswordOldIc.mePswTitleTv.setText(R.string.home_login_old_pws); |
| | | viewBinding.meChangePasswordOldIc.mePswEt.setHint(R.string.home_login_input_old_pws); |
| | | viewBinding.meChangePasswordOldIc.lineV.setVisibility(View.GONE); |
| | |
| | | String newPsw = viewBinding.meChangePasswordNewIc.mePswEt.getText().toString(); |
| | | String affirmPsw = viewBinding.meChangePasswordAffirmIc.mePswEt.getText().toString(); |
| | | boolean isEnabled = oldPsw.length() > 0 && newPsw.length() > 0 && affirmPsw.length() > 0; |
| | | if (isEnabled) { |
| | | viewBinding.homeAffirmTv.setTextColor(getColor(R.color.text_E6FFFFFF)); |
| | | } else { |
| | | viewBinding.homeAffirmTv.setTextColor(getColor(R.color.text_66FFFFFF)); |
| | | } |
| | | viewBinding.homeAffirmTv.setEnabled(isEnabled); |
| | | } |
| | | |