@@ -0,0 +1,1010 @@
+package com.stephenvinouze.linkifiedtextview;%0A%0Aimport android.content.Context;%0Aimport android.content.res.TypedArray;%0Aimport android.graphics.Typeface;%0Aimport android.support.v7.widget.AppCompatEditText;%0Aimport android.util.AttributeSet;%0A%0A/**%0A * Created by Stephen Vinouze on 16/10/15.%0A */%0Apublic class FontEditText extends AppCompatEditText %7B%0A%0A    public FontEditText(Context context) %7B%0A        super(context);%0A    %7D%0A%0A    public FontEditText(Context context, AttributeSet attrs) %7B%0A        super(context, attrs);%0A%0A        TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.FontTextView);%0A%0A        for (int i = 0; i %3C a.getIndexCount(); ++i) %7B%0A%0A            int attr = a.getIndex(i);%0A            if (attr == R.styleable.FontTextView_tvFontName) %7B%0A                setFontName(a.getString(attr));%0A            %7D%0A        %7D%0A%0A        a.recycle();%0A    %7D%0A%0A    public void setFontName(String fontname) %7B%0A        setTypeface(Typeface.createFromAsset(getContext().getAssets(), %22fonts/%22 + fontname));%0A    %7D%0A%0A%7D%0A

Add edit text with custom font