Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.74 KB | None | 0 0
  1. package com.redsmile.lgya.support;
  2.  
  3. import android.content.Context;
  4. import android.graphics.Typeface;
  5. import android.util.AttributeSet;
  6. import android.widget.TextView;
  7.  
  8. public class LGYATextView extends TextView {
  9.  
  10.     public LGYATextView(Context context) {
  11.         super(context);
  12.         init();
  13.     }
  14.  
  15.     public LGYATextView(Context context, AttributeSet attrs) {
  16.         super(context, attrs);
  17.         init();
  18.     }
  19.  
  20.     public LGYATextView(Context context, AttributeSet attrs, int defStyleAttr) {
  21.         super(context, attrs, defStyleAttr);
  22.         init();
  23.     }
  24.  
  25.     private void init() {
  26.         Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "CaviarDreams_Bold.ttf");
  27.         setTypeface(tf);
  28.     }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement