CreditCardView icon indicating copy to clipboard operation
CreditCardView copied to clipboard

[BUG] crashes when type is set to 'none'

Open tobiasschuerg opened this issue 6 years ago • 5 comments

The CreditCardView crashes when type is set to 'none'

tobiasschuerg avatar Aug 01 '18 12:08 tobiasschuerg

You mean CreditCardType ? Its an int value, so how are you able to set it to 'none' ?

vinaygaba avatar Aug 05 '18 17:08 vinaygaba

@vinaygaba it happens when you do it in the XML. Eg: app:type="none"

Ekalips avatar May 07 '19 15:05 Ekalips

Also as an addition I want to add that you are unable to set (or disable) card type programmatically.

Ekalips avatar May 07 '19 16:05 Ekalips

Where you able to resolve this please? I'm experiencing the same issue

Asendo316 avatar Sep 18 '19 11:09 Asendo316

@Asendo316 Currently only one workaround is to hide logo view programatically when you don't know what card type is.

View logoView = cardLayout.findViewById(R.id.card_logo); logoView.setVisibility(View.GONE);

Ekalips avatar Oct 16 '19 14:10 Ekalips