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