コード例 #1
0
 public View getContentView() {
   if (contentView == null) {
     contentView = (ViewGroup) lf.inflate(R.layout.bper_payment_recent_detail_page, null);
     mAccountInfoTitle = (AccountInfoTitle) contentView.findViewById(R.id.account_title_info);
     mAccountInfoTitle.init(AccountInfoTitle.PAYMENT);
     page_title = (TextView) contentView.findViewById(R.id.page_title);
     content_tl = (TableLayout) contentView.findViewById(R.id.table);
     confirm_btn = (Button) contentView.findViewById(R.id.confirmation_btn);
   }
   return contentView;
 }
コード例 #2
0
 public void setAccountsModel(AccountsModel mAccountsModel) {
   mAccountInfoTitle.accountName.setText(mAccountsModel.getAccountAlias());
   String money =
       Utils.generateFormatMoney(
           contentView.getContext().getResources().getString(R.string.eur),
           mAccountsModel.getAccountBalance());
   mAccountInfoTitle.account_balance_value.setText(money);
   money =
       Utils.generateFormatMoney(
           contentView.getContext().getResources().getString(R.string.eur),
           mAccountsModel.getAvailableBalance());
   mAccountInfoTitle.available_balance_value.setText(money);
   if (mAccountsModel.getIsPreferred()) {
     mAccountInfoTitle.setPerferredStar(AccountInfoTitle.PAYMENT);
   } else {
     mAccountInfoTitle.isPerferredStar.setVisibility(View.GONE);
   }
 }