File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 3636------
3737Using CreditCardView is extremely easy, this is how you would declare it in the layout xml:
3838``` java
39- < com.vinaygaba.creditcardview. CreditCardView
39+ < com.vinaygaba.creditcardview.library . CreditCardView
4040 android: id= " @+id/card1"
4141 android: layout_width= " fill_parent"
4242 android: layout_height= " 225dp"
@@ -233,11 +233,11 @@ app:cardName="John Doe"
233233
234234You can set and get the value of this attribute programmatically using:
235235``` java
236- // Set Card Number
236+ // Set Card Name
237237crediCardView. setCardName(" John Doe" );
238238
239- // Get Card Number
240- String cardNumber = crediCardView. getCardName();
239+ // Get Card Name
240+ String cardName = crediCardView. getCardName();
241241```
242242
243243##### VII) app: cardNameTextColor
@@ -327,7 +327,7 @@ app:type="visa/mastercard/americann_express/discover/auto"
327327
328328You can set the value of this attribute programmatically using:
329329``` java
330- // Set Card Type.Choose any one card tpe from the following
330+ // Set Card Type.Choose any one card type from the following
331331creditCardView. setType(CardType . VISA/ CardType . MASTERCARD/ CardType . AMERICAN_EXPRESS/ CardType . DISCOVER/ CardType . AUTO );
332332
333333// Get Card Type.
You can’t perform that action at this time.
0 commit comments