package kr.kdev.dg1s.biowiki.widgets; import android.content.Context; import android.util.AttributeSet; import android.widget.TextView; /** * Created by nbradbury on 7/15/13. * custom TextView used in layouts - enables keeping custom typeface handling in one place (so we * avoid having to set the typeface for every single TextView in every single activity) */ public class BWTextView extends TextView { public BWTextView(Context context) { super(context); TypefaceCache.setCustomTypeface(context, this, null); } public BWTextView(Context context, AttributeSet attrs) { super(context, attrs); TypefaceCache.setCustomTypeface(context, this, attrs); } public BWTextView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); TypefaceCache.setCustomTypeface(context, this, attrs); } }