Rohit Kumar Verma
Rohit Kumar Verma

Reputation: 61

Custom font change for textview in custom listview

I have a custom list with one image view and one text view. I want to change textview font to custom font in assests folder.

I am using Fragments so getAssests method is not working in Fragment.

Upvotes: 0

Views: 120

Answers (1)

Santa Teclado
Santa Teclado

Reputation: 186

Just use this:

Typeface typeface = typeface.createFromAsset(.getAssets(), "fonts/SWINSBRG.TTF");

Upvotes: 0

Related Questions