chrisjenx / Calligraphy

Custom fonts in Android the easy way...
Apache License 2.0
8.59k stars 1.09k forks source link

RadioButtons not affected by my custom font #421

Closed hoseinit closed 5 years ago

hoseinit commented 6 years ago

Hi, I have added custom font to my base Activity and every view till now has been affected by my custom font. Now I am creating an AlertDialog with a custom view which has radiogroup. The problem is the texts of the radiobuttons has not affected and has default ugly font. thanx

Inzimam-Tariq commented 6 years ago

This is the case when Radio Buttons created dynamically. Try this while they fix the issue. radioButton.setTypeface(Typeface.createFromAsset(context.getAssets(), "fonts/DroidKufi-Regular.ttf")); Here context is the reference of Activity