CreditCardView icon indicating copy to clipboard operation
CreditCardView copied to clipboard

Change card programmatically not work in DialogFragment

Open kingfisherphuoc opened this issue 7 years ago • 1 comments

I have dialog fragment which saves/sets the creditcard information programmatically. Everything works ok but the show the saved creditcard info. I'm using this line of code to set creditcard programmtically:

creditCardView.setExpiryDate(expdate);
creditCardView.setCardNumber(creditCard.number);

I think the problem is that you dont reset the text of your expiryDate and cardNumber, just call the function invalidate(); to redraw the view.

kingfisherphuoc avatar Nov 08 '17 05:11 kingfisherphuoc

Can you try the latest library version that I just pushed - 1.0.4

vinaygaba avatar Aug 05 '18 20:08 vinaygaba