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.edittext; //from ww w. j av a 2 s. c om import android.content.Context; import android.graphics.Typeface; import android.util.AttributeSet; import android.widget.EditText; import com.ocypode.component.Typefaced; public class TypefacedEditText extends EditText { public TypefacedEditText(Context context, AttributeSet attrs) { super(context, attrs); if (isInEditMode()) { return; } Typeface typeface = Typefaced.createTypeface(context, attrs); if (typeface != null) { setTypeface(typeface); } } }