Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.redsmile.lgya.support;
- import android.content.Context;
- import android.graphics.Typeface;
- import android.util.AttributeSet;
- import android.widget.TextView;
- public class LGYATextView extends TextView {
- public LGYATextView(Context context) {
- super(context);
- init();
- }
- public LGYATextView(Context context, AttributeSet attrs) {
- super(context, attrs);
- init();
- }
- public LGYATextView(Context context, AttributeSet attrs, int defStyleAttr) {
- super(context, attrs, defStyleAttr);
- init();
- }
- private void init() {
- Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "CaviarDreams_Bold.ttf");
- setTypeface(tf);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement