[BUG] crashes when type is set to 'none'
tobiasschuerg opened this issue · 5 comments
tobiasschuerg commented
The CreditCardView
crashes when type is set to 'none'
vinaygaba commented
You mean CreditCardType ? Its an int value, so how are you able to set it to 'none' ?
Ekalips commented
@vinaygaba it happens when you do it in the XML.
Eg: app:type="none"
Ekalips commented
Also as an addition I want to add that you are unable to set (or disable) card type programmatically.
Asendo316 commented
Where you able to resolve this please?
I'm experiencing the same issue
Ekalips commented
@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);