Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyTextView extends TextView {
- public MyTextView(Context context, AttributeSet attrs, int defStyle) {
- super(context, attrs, defStyle);
- init();
- }
- public MyTextView(Context context, AttributeSet attrs) {
- super(context, attrs);
- init();
- }
- public MyTextView(Context context) {
- super(context);
- init();
- }
- public void init() {
- Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/Munro.ttf");
- setTypeface(tf ,1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement