Back to project page androidcodes.
The source code is released under:
GNU General Public License
If you think the Android project androidcodes 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.app.citypediav2; /*from w w w .ja va 2s . com*/ import android.content.Context; import android.graphics.Typeface; import android.util.AttributeSet; import android.widget.TextView; public class CustomText extends TextView { private Typeface mTF; public CustomText(Context context) { super(context); mTF = Typeface.createFromAsset(context.getAssets(), "helvetica.ttf"); setTypeface(mTF); } public CustomText(Context context, AttributeSet attrs) { super(context, attrs); mTF = Typeface.createFromAsset(context.getAssets(), "helvetica.ttf"); setTypeface(mTF); } public CustomText(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); mTF = Typeface.createFromAsset(context.getAssets(), "helvetica.ttf"); setTypeface(mTF); } }