Skip to content

Commit a9398c4

Browse files
committed
No need to define custom attributes.
1 parent 9b1cb15 commit a9398c4

File tree

2 files changed

+4
-28
lines changed

2 files changed

+4
-28
lines changed

Library/src/main/java/org/codeandmagic/android/TypefaceTextView.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ public TypefaceTextView(Context context, AttributeSet attrs) {
1414
TypefaceManager.getInstance().applyTypeface(this, context, attrs);
1515
}
1616

17+
/**
18+
* Convenience method in case I need to change the font from code as well.
19+
* @param textStyle
20+
*/
1721
public void setTextStyle(TextStyle textStyle) {
1822
TypefaceManager.getInstance().applyTypeface(this, textStyle);
1923
}

Library/src/main/res/values/attrs.xml

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)