Ejemplo n.º 1
0
      public void setData(int position, AccountsModel mAccountsModel) {
        this.position = position;
        this.mAccountsModel = mAccountsModel;
        if (mAccountsModel.getAccountAlias() != null) {
          name_tv.setText(mAccountsModel.getAccountAlias());
        } else {
          name_tv.setText("");
        }

        if (mAccountsModel.getCardHolder() != null) {
          iban.setText(mAccountsModel.getCardHolder());
        } else {
          iban.setText("");
        }

        String cardNumber = mAccountsModel.getCardNumber();
        if (cardNumber == null) {
          cardNumber = "";
        }
        avilable_banlence_tv.setText(cardNumber);
        if (mAccountsModel.getIsPreferred()) {
          isPreferredStar.setVisibility(View.VISIBLE);
        } else {
          isPreferredStar.setVisibility(View.GONE);
        }

        if (disAblePosition == position) {
          onEnable(false);
        } else {
          rbtn.setChecked(selectedPosition == position);
          name_tv.setTextColor(name_tv.getResources().getColor(R.color.black));
          itemView.setEnabled(true);
          rbtn.setEnabled(true);
        }
      }
Ejemplo n.º 2
0
  public CardsBarGraphic(Context context, DashBoardModel model) {
    super(context);
    this.dataList = model.getDashboardDataList();
    setTextLeft("WITHDRAWALS");

    String num = "";
    for (AccountsModel accountsModel : Contants.cardAccounts) {

      if (model.getAccountCode().equals(accountsModel.getAccountCode())) {
        num = accountsModel.getCardNumber();
      }
    }
    setTextRight("Card XXXX XXXX XXXX " + num);
  }
Ejemplo n.º 3
0
  public void onMyCardSelected(AccountsModel accountsModel) {

    beneficiaryNameEditText.setText(accountsModel.getCardHolder());
    cardNumberEditText.setText(accountsModel.getCardNumber());
    isVerifyCard = false;
  }