wjc
2024-12-10 3ccff7173fb73322f7785d8eaedc90a1b5d8765d
app/src/main/java/com/hdl/photovoltaic/ui/me/MeChangePasswordActivity.java
@@ -38,8 +38,7 @@
    @Override
    public void onBindView(Bundle savedInstanceState) {
        setNotificationBarBackgroundColor(CustomColor.white);
        setStatusBarTextColor();
       setStatusBarTranslucent();
        //初始化
        initView();
        //初始化界面监听器
@@ -163,11 +162,8 @@
     * 初始化
     */
    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);
@@ -190,6 +186,11 @@
        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);
    }