Android Open Source - Google-IO-Countdown-for-Android Roboto Font






From Project

Back to project page Google-IO-Countdown-for-Android.

License

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.

Java Source Code

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);
    }

}




Java Source Code List

com.javiersantos.googleiocountdown.Counter.java
com.javiersantos.googleiocountdown.MainActivity.java
com.javiersantos.googleiocountdown.RobotoFontLight.java
com.javiersantos.googleiocountdown.RobotoFont.java
com.javiersantos.googleiocountdown.WidgetDate.java
com.javiersantos.googleiocountdown.adapter.AboutFragment.java
com.javiersantos.googleiocountdown.adapter.HomeFragment.java
com.javiersantos.googleiocountdown.adapter.LiveFragment.java
com.javiersantos.googleiocountdown.adapter.TabsPagerAdapter.java