diff --git a/robototextview/src/main/java/com/devspark/robototextview/RobotoTypefaceManager.java b/robototextview/src/main/java/com/devspark/robototextview/RobotoTypefaceManager.java index 30c8019..8d070da 100644 --- a/robototextview/src/main/java/com/devspark/robototextview/RobotoTypefaceManager.java +++ b/robototextview/src/main/java/com/devspark/robototextview/RobotoTypefaceManager.java @@ -30,28 +30,28 @@ public class RobotoTypefaceManager { /* * Available values ​​for the "typeface" attribute. */ - private final static int ROBOTO_THIN = 0; - private final static int ROBOTO_THIN_ITALIC = 1; - private final static int ROBOTO_LIGHT = 2; - private final static int ROBOTO_LIGHT_ITALIC = 3; - private final static int ROBOTO_REGULAR = 4; - private final static int ROBOTO_ITALIC = 5; - private final static int ROBOTO_MEDIUM = 6; - private final static int ROBOTO_MEDIUM_ITALIC = 7; - private final static int ROBOTO_BOLD = 8; - private final static int ROBOTO_BOLD_ITALIC = 9; - private final static int ROBOTO_BLACK = 10; - private final static int ROBOTO_BLACK_ITALIC = 11; - private final static int ROBOTO_CONDENSED_LIGHT = 12; - private final static int ROBOTO_CONDENSED_LIGHT_ITALIC = 13; - private final static int ROBOTO_CONDENSED_REGULAR = 14; - private final static int ROBOTO_CONDENSED_ITALIC = 15; - private final static int ROBOTO_CONDENSED_BOLD = 16; - private final static int ROBOTO_CONDENSED_BOLD_ITALIC = 17; - private final static int ROBOTO_SLAB_THIN = 18; - private final static int ROBOTO_SLAB_LIGHT = 19; - private final static int ROBOTO_SLAB_REGULAR = 20; - private final static int ROBOTO_SLAB_BOLD = 21; + public final static int ROBOTO_THIN = 0; + public final static int ROBOTO_THIN_ITALIC = 1; + public final static int ROBOTO_LIGHT = 2; + public final static int ROBOTO_LIGHT_ITALIC = 3; + public final static int ROBOTO_REGULAR = 4; + public final static int ROBOTO_ITALIC = 5; + public final static int ROBOTO_MEDIUM = 6; + public final static int ROBOTO_MEDIUM_ITALIC = 7; + public final static int ROBOTO_BOLD = 8; + public final static int ROBOTO_BOLD_ITALIC = 9; + public final static int ROBOTO_BLACK = 10; + public final static int ROBOTO_BLACK_ITALIC = 11; + public final static int ROBOTO_CONDENSED_LIGHT = 12; + public final static int ROBOTO_CONDENSED_LIGHT_ITALIC = 13; + public final static int ROBOTO_CONDENSED_REGULAR = 14; + public final static int ROBOTO_CONDENSED_ITALIC = 15; + public final static int ROBOTO_CONDENSED_BOLD = 16; + public final static int ROBOTO_CONDENSED_BOLD_ITALIC = 17; + public final static int ROBOTO_SLAB_THIN = 18; + public final static int ROBOTO_SLAB_LIGHT = 19; + public final static int ROBOTO_SLAB_REGULAR = 20; + public final static int ROBOTO_SLAB_BOLD = 21; /** * Array of created typefaces for later reused. */ @@ -65,7 +65,7 @@ public class RobotoTypefaceManager { * @return specify {@link Typeface} * @throws IllegalArgumentException if unknown `typeface` attribute value. */ - public static Typeface obtaintTypeface(Context context, int typefaceValue) throws IllegalArgumentException { + public static Typeface obtainTypeface (Context context, int typefaceValue) throws IllegalArgumentException { Typeface typeface = mTypefaces.get(typefaceValue); if (typeface == null) { typeface = createTypeface(context, typefaceValue); diff --git a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoAutoCompleteTextView.java b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoAutoCompleteTextView.java index 8bddf03..ca4912a 100644 --- a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoAutoCompleteTextView.java +++ b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoAutoCompleteTextView.java @@ -105,7 +105,7 @@ private void onInitTypeface(Context context, AttributeSet attrs, int defStyle) { values.recycle(); } - Typeface robotoTypeface = RobotoTypefaceManager.obtaintTypeface(context, typefaceValue); + Typeface robotoTypeface = RobotoTypefaceManager.obtainTypeface(context, typefaceValue); setTypeface(robotoTypeface); } diff --git a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoButton.java b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoButton.java index 18ebd39..560bba1 100644 --- a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoButton.java +++ b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoButton.java @@ -105,7 +105,7 @@ private void onInitTypeface(Context context, AttributeSet attrs, int defStyle) { values.recycle(); } - Typeface robotoTypeface = RobotoTypefaceManager.obtaintTypeface(context, typefaceValue); + Typeface robotoTypeface = RobotoTypefaceManager.obtainTypeface(context, typefaceValue); setTypeface(robotoTypeface); } diff --git a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoCheckBox.java b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoCheckBox.java index b00b4cd..eb545c4 100644 --- a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoCheckBox.java +++ b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoCheckBox.java @@ -105,7 +105,7 @@ private void onInitTypeface(Context context, AttributeSet attrs, int defStyle) { values.recycle(); } - Typeface robotoTypeface = RobotoTypefaceManager.obtaintTypeface(context, typefaceValue); + Typeface robotoTypeface = RobotoTypefaceManager.obtainTypeface(context, typefaceValue); setTypeface(robotoTypeface); } diff --git a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoCheckedTextView.java b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoCheckedTextView.java index a6b6ba8..333055f 100644 --- a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoCheckedTextView.java +++ b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoCheckedTextView.java @@ -105,7 +105,7 @@ private void onInitTypeface(Context context, AttributeSet attrs, int defStyle) { values.recycle(); } - Typeface robotoTypeface = RobotoTypefaceManager.obtaintTypeface(context, typefaceValue); + Typeface robotoTypeface = RobotoTypefaceManager.obtainTypeface(context, typefaceValue); setTypeface(robotoTypeface); } diff --git a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoChronometer.java b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoChronometer.java index d222bbc..ace4a14 100644 --- a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoChronometer.java +++ b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoChronometer.java @@ -105,7 +105,7 @@ private void onInitTypeface(Context context, AttributeSet attrs, int defStyle) { values.recycle(); } - Typeface robotoTypeface = RobotoTypefaceManager.obtaintTypeface(context, typefaceValue); + Typeface robotoTypeface = RobotoTypefaceManager.obtainTypeface(context, typefaceValue); setTypeface(robotoTypeface); } diff --git a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoCompoundButton.java b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoCompoundButton.java index 6c50534..0f1409a 100644 --- a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoCompoundButton.java +++ b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoCompoundButton.java @@ -105,7 +105,7 @@ private void onInitTypeface(Context context, AttributeSet attrs, int defStyle) { values.recycle(); } - Typeface robotoTypeface = RobotoTypefaceManager.obtaintTypeface(context, typefaceValue); + Typeface robotoTypeface = RobotoTypefaceManager.obtainTypeface(context, typefaceValue); setTypeface(robotoTypeface); } diff --git a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoDigitalClock.java b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoDigitalClock.java index 38f999e..5904fa2 100644 --- a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoDigitalClock.java +++ b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoDigitalClock.java @@ -83,7 +83,7 @@ private void onInitTypeface(Context context, AttributeSet attrs) { values.recycle(); } - Typeface robotoTypeface = RobotoTypefaceManager.obtaintTypeface(context, typefaceValue); + Typeface robotoTypeface = RobotoTypefaceManager.obtainTypeface(context, typefaceValue); setTypeface(robotoTypeface); } diff --git a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoEditText.java b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoEditText.java index ee6ec85..c04e24b 100644 --- a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoEditText.java +++ b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoEditText.java @@ -105,7 +105,7 @@ private void onInitTypeface(Context context, AttributeSet attrs, int defStyle) { values.recycle(); } - Typeface robotoTypeface = RobotoTypefaceManager.obtaintTypeface(context, typefaceValue); + Typeface robotoTypeface = RobotoTypefaceManager.obtainTypeface(context, typefaceValue); setTypeface(robotoTypeface); } diff --git a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoExtractEditText.java b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoExtractEditText.java index 7462e63..965562c 100644 --- a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoExtractEditText.java +++ b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoExtractEditText.java @@ -105,7 +105,7 @@ private void onInitTypeface(Context context, AttributeSet attrs, int defStyle) { values.recycle(); } - Typeface robotoTypeface = RobotoTypefaceManager.obtaintTypeface(context, typefaceValue); + Typeface robotoTypeface = RobotoTypefaceManager.obtainTypeface(context, typefaceValue); setTypeface(robotoTypeface); } diff --git a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoMultiAutoCompleteTextView.java b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoMultiAutoCompleteTextView.java index b4f5012..f72dbf6 100644 --- a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoMultiAutoCompleteTextView.java +++ b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoMultiAutoCompleteTextView.java @@ -105,7 +105,7 @@ private void onInitTypeface(Context context, AttributeSet attrs, int defStyle) { values.recycle(); } - Typeface robotoTypeface = RobotoTypefaceManager.obtaintTypeface(context, typefaceValue); + Typeface robotoTypeface = RobotoTypefaceManager.obtainTypeface(context, typefaceValue); setTypeface(robotoTypeface); } diff --git a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoRadioButton.java b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoRadioButton.java index 4c9282c..5f7f1d4 100644 --- a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoRadioButton.java +++ b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoRadioButton.java @@ -105,7 +105,7 @@ private void onInitTypeface(Context context, AttributeSet attrs, int defStyle) { values.recycle(); } - Typeface robotoTypeface = RobotoTypefaceManager.obtaintTypeface(context, typefaceValue); + Typeface robotoTypeface = RobotoTypefaceManager.obtainTypeface(context, typefaceValue); setTypeface(robotoTypeface); } diff --git a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoSwitch.java b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoSwitch.java index c57842a..aa6d2bb 100644 --- a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoSwitch.java +++ b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoSwitch.java @@ -108,7 +108,7 @@ private void onInitTypeface(Context context, AttributeSet attrs, int defStyle) { values.recycle(); } - Typeface robotoTypeface = RobotoTypefaceManager.obtaintTypeface(context, typefaceValue); + Typeface robotoTypeface = RobotoTypefaceManager.obtainTypeface(context, typefaceValue); setTypeface(robotoTypeface); } diff --git a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoTextClock.java b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoTextClock.java index c820e7d..5e82248 100644 --- a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoTextClock.java +++ b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoTextClock.java @@ -105,7 +105,7 @@ private void onInitTypeface(Context context, AttributeSet attrs, int defStyle) { values.recycle(); } - Typeface robotoTypeface = RobotoTypefaceManager.obtaintTypeface(context, typefaceValue); + Typeface robotoTypeface = RobotoTypefaceManager.obtainTypeface(context, typefaceValue); setTypeface(robotoTypeface); } diff --git a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoTextView.java b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoTextView.java index 6dc6184..d03e408 100644 --- a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoTextView.java +++ b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoTextView.java @@ -105,7 +105,7 @@ private void onInitTypeface(Context context, AttributeSet attrs, int defStyle) { values.recycle(); } - Typeface robotoTypeface = RobotoTypefaceManager.obtaintTypeface(context, typefaceValue); + Typeface robotoTypeface = RobotoTypefaceManager.obtainTypeface(context, typefaceValue); setTypeface(robotoTypeface); } diff --git a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoToggleButton.java b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoToggleButton.java index b9bd6bc..9372304 100644 --- a/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoToggleButton.java +++ b/robototextview/src/main/java/com/devspark/robototextview/widget/RobotoToggleButton.java @@ -105,7 +105,7 @@ private void onInitTypeface(Context context, AttributeSet attrs, int defStyle) { values.recycle(); } - Typeface robotoTypeface = RobotoTypefaceManager.obtaintTypeface(context, typefaceValue); + Typeface robotoTypeface = RobotoTypefaceManager.obtainTypeface(context, typefaceValue); setTypeface(robotoTypeface); }