diff --git a/CreditCardEntry/res/values/strings.xml b/CreditCardEntry/res/values/strings.xml
index 5f7d181..edecb47 100644
--- a/CreditCardEntry/res/values/strings.xml
+++ b/CreditCardEntry/res/values/strings.xml
@@ -4,5 +4,9 @@
Expiration date (MM/YY)
Security code (CVV)
Zip code of billing address
+ CVV
+ MM/YY
+ ZIP
+ 1234 5678 9012 3456
\ No newline at end of file
diff --git a/CreditCardEntry/src/com/devmarvel/creditcardentry/fields/ExpDateText.java b/CreditCardEntry/src/com/devmarvel/creditcardentry/fields/ExpDateText.java
index fbcad48..188f28e 100644
--- a/CreditCardEntry/src/com/devmarvel/creditcardentry/fields/ExpDateText.java
+++ b/CreditCardEntry/src/com/devmarvel/creditcardentry/fields/ExpDateText.java
@@ -30,7 +30,7 @@ public ExpDateText(Context context, AttributeSet attrs, int defStyle) {
void init() {
super.init();
- setHint("MM/YY");
+ setHint(R.string.ExpDateFieldHint);
}
/* TextWatcher Implementation Methods */
diff --git a/CreditCardEntry/src/com/devmarvel/creditcardentry/fields/SecurityCodeText.java b/CreditCardEntry/src/com/devmarvel/creditcardentry/fields/SecurityCodeText.java
index edd043b..9635485 100644
--- a/CreditCardEntry/src/com/devmarvel/creditcardentry/fields/SecurityCodeText.java
+++ b/CreditCardEntry/src/com/devmarvel/creditcardentry/fields/SecurityCodeText.java
@@ -34,7 +34,7 @@ public SecurityCodeText(Context context, AttributeSet attrs, int defStyle) {
void init() {
super.init();
- setHint("CVV");
+ setHint(R.string.SecurityCodeFieldHint);
}
/* TextWatcher Implementation Methods */
diff --git a/CreditCardEntry/src/com/devmarvel/creditcardentry/fields/ZipCodeText.java b/CreditCardEntry/src/com/devmarvel/creditcardentry/fields/ZipCodeText.java
index 8c68d77..5fa1d42 100644
--- a/CreditCardEntry/src/com/devmarvel/creditcardentry/fields/ZipCodeText.java
+++ b/CreditCardEntry/src/com/devmarvel/creditcardentry/fields/ZipCodeText.java
@@ -31,7 +31,7 @@ void init() {
super.init();
maxChars = 5;
setMaxChars(maxChars);
- setHint(" ZIP ");
+ setHint(R.string.ZipCodeFieldHint);
}
@Override
diff --git a/CreditCardEntry/src/com/devmarvel/creditcardentry/library/CreditCardForm.java b/CreditCardEntry/src/com/devmarvel/creditcardentry/library/CreditCardForm.java
index 39119d3..d9b1889 100644
--- a/CreditCardEntry/src/com/devmarvel/creditcardentry/library/CreditCardForm.java
+++ b/CreditCardEntry/src/com/devmarvel/creditcardentry/library/CreditCardForm.java
@@ -34,7 +34,7 @@ public class CreditCardForm extends RelativeLayout {
private Drawable inputBackground;
private boolean useDefaultColors;
private boolean animateOnError;
- private String cardNumberHint = "1234 5678 9012 3456";
+ private String cardNumberHint;
public CreditCardForm(Context context) {
this(context, null);
@@ -76,7 +76,7 @@ public CreditCardForm(Context context, AttributeSet attrs, int defStyle) {
}
// defaults if not set by user
- if(cardNumberHint == null) cardNumberHint = "1234 5678 9012 3456";
+ if(cardNumberHint == null) cardNumberHint = context.getResources().getString(R.string.CreditCardFormCardNumberHint);
if(inputBackground == null) {
//noinspection deprecation
inputBackground = context.getResources().getDrawable(R.drawable.background_white);