Problema de desempenho na fonte personalizada TextView

Eu tenho um TextView personalizado, com um atributo de fonte personalizado:

public class TextViewPlus extends TextView {
    private static final String TAG = "TextViewPlus";
    public TextViewPlus(Context context) {
        super(context);
    }
    public TextViewPlus(Context context, AttributeSet attrs) {
        // This is called all the time I scroll my ListView
        // and it make it very slow. 
        super(context, attrs);
        setCustomFont(context, attrs);
    }
    public TextViewPlus(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        setCustomFont(context, attrs);
    }
    private void setCustomFont(Context ctx, AttributeSet attrs) {
        TypedArray a = ctx.obtainStyledAttributes(attrs, R.styleable.TextViewPlus);
        String customFont = a.getString(R.styleable.TextViewPlus_customFont);
        setCustomFont(ctx, customFont);
        a.recycle();
    }
    public boolean setCustomFont(Context ctx, String asset) {
        Typeface tf = null;
        try {
            tf = Typeface.createFromAsset(ctx.getAssets(), asset);  
            setTypeface(tf); 
        } catch (Exception e) {
            Log.e(TAG, "Could not get typeface: "+e.getMessage());
            return false;
        }
        return true;
    }
}

Eu estou usando em meus arquivos XML com o atributocustomFont = "ArialRounded.ttf"e está funcionando muito bem.

Estou usando este TextViewPlus em um ListView, preenchido com um ArrayAdapter.

TextViewPlus dataText = (TextViewPlus) itemView.findViewById(R.id.data_text);
dataText.setText("My data String");

Meu problema é que o desempenho, quando estou rolando o ListView, é terrível! Muito lento e cheio de atrasos. O construtor TextViewPlus n ° 2 é chamado o tempo todo para rolar a lista.

Se eu mudar TextViewPlus em um TextView normal e usardataText.setTypeface (myFont)Tudo está bem e está funcionando bem.

Como posso usar meu TextViewPlus sem problemas de desempenho?

questionAnswers(1)

yourAnswerToTheQuestion