Android Open Source - projectIshaanya Text View C






From Project

Back to project page projectIshaanya.

License

The source code is released under:

GNU General Public License

If you think the Android project projectIshaanya 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.anandbibek.ishaanya2k14;
/*from w  w  w  .ja  v a  2s . com*/
import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.TextView;

/**
 * Created by Anand on 1/18/14.
 */
public class TextViewC extends TextView {

    private static Typeface typeface;

    public TextViewC(final Context context){
        this(context, null);
    }

    public TextViewC(final Context context, final AttributeSet att){
        this(context,att,0);
    }

    public TextViewC(final Context context, final AttributeSet att, final int def){
        super(context,att,def);
        if(!this.isInEditMode()){
            if(typeface==null)
                typeface = Typeface.createFromAsset(context.getAssets(),"fonts/Roboto-Light.ttf");
            setTypeface(typeface);
        }
    }


}




Java Source Code List

com.anandbibek.ishaanya2k14.AboutFragment.java
com.anandbibek.ishaanya2k14.EventFragment.java
com.anandbibek.ishaanya2k14.MainActivity.java
com.anandbibek.ishaanya2k14.NavigationDrawerFragment.java
com.anandbibek.ishaanya2k14.TextViewC.java
com.anandbibek.ishaanya2k14.WelcomeFragment.java
com.anandbibek.ishaanya2k14.WrkshopFragment.java