private void responseAllState() { try { transferPwdView .getTipTextView() .setText(StringUtils.isBlank(statusMap.get("TRANSACTION_PASSWORD")) ? "未设置" : "已设置"); // 绑定银行卡状态 a未绑定 c绑定失败 d确认中 e已绑定 String status = ""; switch (statusMap.get("BANK_CARD_STATUS").charAt(0)) { case 'a': status = "未绑定"; break; case 'c': status = "绑定失败"; break; case 'd': status = "确认中"; break; case 'e': status = "已绑定"; break; } bankCardView.getTipTextView().setText(status); } catch (Exception e) { e.printStackTrace(); } }
private void hideAllState() { transferPwdView.getTipTextView().setText(""); }
private void initView() { ((TextView) this.findViewById(R.id.titleTextView)).setText("个人认证"); this.findViewById(R.id.backBtn).setOnClickListener(this); headLogoView = (DavinciView) this.findViewById(R.id.headLogoView); headLogoView.getLogoImageView().setVisibility(View.GONE); headLogoView.getTitleTextView().setText("设置头像"); headLogoView.getImportantTextView().setVisibility(View.VISIBLE); headLogoView.getTipTextView().setText(""); headLogoView.setOnClickListener(this); headImageView = (CustomNetworkImageView) this.findViewById(R.id.headImageView); headImageView.setErrorImageResId(R.drawable.head_keeper_default); headImageView.setDefaultImageResId(R.drawable.head_keeper_default); if (agentDto != null) { headImageView.setImageUrl( Constants.HOST_IP + agentDto.getLogoUrl() + "?random=" + ActivityUtil.getSharedPreferences().getString(Constants.HEAD_RANDOM, "0"), ImageCacheManager.getInstance().getImageLoader()); } transferPwdView = (DavinciView) this.findViewById(R.id.transferPwdView); transferPwdView.getLogoImageView().setVisibility(View.GONE); transferPwdView.getTitleTextView().setText("交易密码"); transferPwdView.getImportantTextView().setVisibility(View.VISIBLE); transferPwdView.getTipTextView().setText(""); transferPwdView.setOnClickListener(this); modifyLoginPwdView = (DavinciView) this.findViewById(R.id.modifyLoginPwdView); modifyLoginPwdView.getLogoImageView().setVisibility(View.GONE); modifyLoginPwdView.getTitleTextView().setText("修改登录密码"); modifyLoginPwdView.getTipTextView().setText(""); modifyLoginPwdView.setOnClickListener(this); modifyGestureLockView = (DavinciView) this.findViewById(R.id.modifyGestureLockView); modifyGestureLockView.getLogoImageView().setVisibility(View.GONE); modifyGestureLockView.getTitleTextView().setText("管理手势密码"); modifyGestureLockView.getTipTextView().setText(""); modifyGestureLockView.setOnClickListener(this); bankCardView = (DavinciView) this.findViewById(R.id.bankCardView); bankCardView.getLogoImageView().setVisibility(View.GONE); bankCardView.getTitleTextView().setText("银行卡"); bankCardView.getImportantTextView().setVisibility(View.VISIBLE); bankCardView.getTipTextView().setText(""); bankCardView.setOnClickListener(this); cardIdView = (DavinciView) this.findViewById(R.id.cardIdView); cardIdView.getLogoImageView().setVisibility(View.GONE); cardIdView.getTitleTextView().setText("身份证照片"); cardIdView.getImportantTextView().setVisibility(View.VISIBLE); cardIdView.getTipTextView().setText(""); cardIdView.setOnClickListener(this); jobPhotoView = (DavinciView) this.findViewById(R.id.jobPhotoView); jobPhotoView.getLogoImageView().setVisibility(View.GONE); jobPhotoView.getTitleTextView().setText("工作证照片"); jobPhotoView.getImportantTextView().setVisibility(View.VISIBLE); jobPhotoView.getTipTextView().setText(""); jobPhotoView.setOnClickListener(this); }