vinaygaba / CreditCardView

💳 CreditCardView is an Android library that allows developers to create the UI which replicates an actual Credit Card.
797 stars 143 forks source link

passing value into card programmatically #28

Open bkmalkoc opened 7 years ago

bkmalkoc commented 7 years ago

This setCardName function is not working

CreditCardView creditCardView = (CreditCardView) findViewById(R.id.custom_card_image);
creditCardView.setCardName("Burak");
cjae commented 7 years ago

All the set function, none working

CreditCardView creditCardView = (CreditCardView) findViewById(R.id.custom_card_image);
creditCardView.setCardName("Burak");
KgotsoK commented 7 years ago

Yeah none of them work... such a bummer

Onesky-Android commented 7 years ago

Had this same issue too. Fixed it by changing the app's build.gradle line to compile 'com.github.vinaygaba:CreditCardView:v1.0.3' and adding maven {url "https://jitpack.io"} to the repositories in the project's build.gradle file.

minhdn7 commented 6 years ago

it is not working for me, i add: 'com.github.vinaygaba:CreditCardView:v1.0.3' and in project's build.gradle maven {url "https://jitpack.io"} big bug:(

StillOnMyWay commented 6 years ago

Has anyone found a fix for this?

vinaygaba commented 6 years ago

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

vinaygaba commented 6 years ago

@StillOnMyWay did you get a chance to try the latest version ?

StillOnMyWay commented 6 years ago

I had to switch to another library which had it working, for timeliness sake. @vinaygaba

rameez-sgi commented 6 years ago

@StillOnMyWay which library are you using now for creditcard view ?

Efhemo commented 4 years ago

@vinaygaba still not working on - 1.0.4 tried to do

override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) {
              creditCardView.cardNumber = s.toString()
}