-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with CreditCardView #23
Comments
Also using Recycler View and can't fill the card from the onBindViewHolder |
Can't fill the card at all and not using RecyclerView |
As a temporary solution, you can call private method 'initDefaults' on your CreditCardView object via reflection. It invokes all edittext.setText methods with the string values, that you have supplied to view earlier. I bind data to CreditCardView like this (yep, its kotlin) private fun createViewFromCard(card: Card): View {
return CreditCardView(context).apply {
isEditable = false
cardNumber = card.id
background = ViewUtils.createCardDrawable(card.color)
cardName = card.owner
expiryDate = card.validTill
val invalidateMethod = this.javaClass.getDeclaredMethod("initDefaults")
invalidateMethod.isAccessible = true
invalidateMethod.invoke(this)
}
} |
Can you try this @itamarkaufman @lovekeshargalon @qazimusab
If this doesn't solve your problem, I will fix it over the weekend. Would really appreciate if you could give this a shot. |
how to removed card type like visa,master.... |
I can use within the RecyclerView & not set Data in CreditCardView.
The text was updated successfully, but these errors were encountered: