sharish / CreditCardView

Apache License 2.0
968 stars 246 forks source link

how to increase limit for card holder name, currently it takes only 16 #56

Open imyadavjee opened 4 years ago

AndreTaxiDigital commented 4 years ago

I want to know too.

ferglezt commented 3 years ago

Override the implementation of this method:


`public void setCardHolderName(String cardHolderName) {
        cardHolderName = cardHolderName == null ? "" : cardHolderName;
        if (cardHolderName.length() > 16) {
            cardHolderName = cardHolderName.substring(0, 16);
        }

        this.mCardHolderName = cardHolderName;
        ((TextView)this.findViewById(TEXTVIEW_CARD_HOLDER_ID)).setText(cardHolderName);
    }`