Back to project page Google-IO-Countdown-for-Android.
The source code is released under:
GNU General Public License
If you think the Android project Google-IO-Countdown-for-Android 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.javiersantos.googleiocountdown; /* w ww . ja va2 s. c o m*/ import android.content.Context; import android.graphics.Typeface; import android.util.AttributeSet; import android.widget.TextView; public class RobotoFont extends TextView { public RobotoFont(Context context) { super(context); style(context); } public RobotoFont(Context context, AttributeSet attrs) { super(context, attrs); style(context); } public RobotoFont(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); style(context); } private void style(Context context) { Typeface tf = Typeface.createFromAsset(context.getAssets(), "Roboto.ttf"); setTypeface(tf); } }