CardForm
CardForm copied to clipboard
Set Amount
How to set amount in form please explain in detail
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 thanks. create a pull request I will merge it. I have no longer time to maintain
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.