CardForm icon indicating copy to clipboard operation
CardForm copied to clipboard

Set Amount

Open guru-technolabs opened this issue 8 years ago • 3 comments

How to set amount in form please explain in detail

guru-technolabs avatar Sep 07 '17 09:09 guru-technolabs

I experienced the same problem. A 'temp' workaround I used was to download the source code into my project and changed the setAmount method in CardForm.java to the below:

public void setAmount(String amount) { this.amount = amount; paymentAmount.setText(this.amount); }

kwexn avatar Dec 17 '17 23:12 kwexn

@kwexn thanks. create a pull request I will merge it. I have no longer time to maintain

issotina avatar Dec 17 '17 23:12 issotina

or you can manipulate the root view.

TextView amount = (TextView) (cardForm.getRootView().findViewById(R.id.payment_amount));
// and then do whatever you want with that
amount.setText("0.00");
// similarly you can access anything from the cardForm, see the class implementation for the ids.

khyzarkapoor avatar Apr 02 '19 19:04 khyzarkapoor