Back to project page Ocypode.
The source code is released under:
MIT License
If you think the Android project Ocypode listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.ocypode.component.view.textview; /*w w w.j av a 2 s .co m*/ import android.content.Context; import android.graphics.Typeface; import android.util.AttributeSet; import android.widget.TextView; import com.ocypode.component.Typefaced; public class TypefacedTextView extends TextView { public TypefacedTextView(Context context, AttributeSet attrs) { super(context, attrs); if (isInEditMode()) { return; } Typeface typeface = Typefaced.createTypeface(context, attrs); if (typeface != null) { setTypeface(typeface); } } }