コード例 #1
0
 public void setValue(PropertyDeductionAppDto dto) {
   this.logoImageView.setImageUrl(
       Constants.HOST_IP + dto.getImg(), ImageCacheManager.getInstance().getImageLoader());
   this.moneyTextView.setText(dto.getMoney() + " 元");
   this.timeTextView.setText(dto.getTimeStr());
   this.companyTextView.setText(dto.getCompanyName());
 }
コード例 #2
0
  public void setValue(DebtPackageInfoAppDto dto) {
    if (dto == null) return;

    this.dto = dto;

    fenqiHeadImageView.setDefaultImageResId(R.drawable.fenqi_head_default);
    fenqiHeadImageView.setErrorImageResId(R.drawable.fenqi_head_default);
    fenqiHeadImageView.setLocalImageBitmap(R.drawable.fenqi_head_default);
    fenqiHeadImageView.setImageUrl(
        dto.getLogoImg(), ImageCacheManager.getInstance().getImageLoader());

    nameTextView.setText(dto.getRealName());

    companyTextView.setText("(" + dto.getOrganization() + ")");

    fenqiDescTextView.setText("分期消费:" + dto.getGoodsName() + " ¥" + dto.getGoodsPrice());

    totalAmountTextView.setText(this.dto.getTotalMoney());
    transferMoneyTextView.setText(this.dto.getMaxMoney());
    surplusTextView.setText(this.dto.getMaxPeriod() + "");
    purchaseIncentivesTextView.setText(this.dto.getReward());
    expectedRateTextView.setText(this.dto.getMinRate() + "%");

    repaymentTypeTextView.setText("按天付息,到期还本");
    recordsCountTextView.setText(this.dto.getPeople() + "");

    if (null != dto.getRewardRate()) {
      rewardRateTextView.setText("加息" + dto.getRewardRate() + "%");
      handler.postDelayed(runnable, 1000); // 开始Timer
    }
  }