I know this question has been asked many times but still i am not getting it right.So please do help me.I want to change the font of my textviews.I find some code on google and end up doing this

Code

```
public class SliderFont extends TextView {
    public SliderFont(Context context, AttributeSet attrs) {
        super(context, attrs);

        Typeface typeface = Typeface.createFromAsset(context.getAssets(), "fonts/redhead.ttf");
        setTypeface(typeface);
    }
}

```

And used this in my XMl

```
<pocketdocs.indiehustlers.com.pocketdocsv2.Utils.SliderFont
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:layout_marginLeft="5dp"
    android:text="AWAITED APPROVAL"
    android:textColor="#fff"
    android:textSize="@dimen/edit_text_size" />

```

But still I am not getting the desired font.

I have created assets folder like this ![enter image description here](https://i.stack.imgur.com/YwV2D.png)