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; //from ww w .ja va2 s .com import android.content.Context; import android.graphics.Typeface; import android.util.AttributeSet; import android.widget.TextView; public class RobotoFontLight extends TextView { public RobotoFontLight(Context context) { super(context); style(context); } public RobotoFontLight(Context context, AttributeSet attrs) { super(context, attrs); style(context); } public RobotoFontLight(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); style(context); } private void style(Context context) { Typeface tf = Typeface.createFromAsset(context.getAssets(), "RobotoThin.ttf"); setTypeface(tf); } }