CreditCardView icon indicating copy to clipboard operation
CreditCardView copied to clipboard

passing value into card programmatically

Open bkmalkoc opened this issue 7 years ago • 10 comments

This setCardName function is not working

CreditCardView creditCardView = (CreditCardView) findViewById(R.id.custom_card_image);
creditCardView.setCardName("Burak");

bkmalkoc avatar Jun 19 '17 02:06 bkmalkoc

All the set function, none working

CreditCardView creditCardView = (CreditCardView) findViewById(R.id.custom_card_image);
creditCardView.setCardName("Burak");

cjae avatar Jun 27 '17 16:06 cjae

Yeah none of them work... such a bummer

KgotsoK avatar Oct 04 '17 20:10 KgotsoK

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.

Onesky-Android avatar Nov 02 '17 19:11 Onesky-Android

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:(

minhdn7 avatar Jun 19 '18 07:06 minhdn7

Has anyone found a fix for this?

StillOnMyWay avatar Jul 30 '18 03:07 StillOnMyWay

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

vinaygaba avatar Aug 05 '18 20:08 vinaygaba

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

vinaygaba avatar Aug 09 '18 05:08 vinaygaba

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

StillOnMyWay avatar Sep 04 '18 11:09 StillOnMyWay

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

rameez-sgi avatar Oct 01 '18 11:10 rameez-sgi

@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()
}

Efhemo avatar Apr 01 '20 09:04 Efhemo