Custom Fonts and Custom Textview on Android
From an application I need to develop, I've received a specific font that has many files like FontName-Regular, FontName-Bold , FontName-it . I need to use it in all the textviews in the application. First I thought it was an easy task. Look over SO and found a very nice thread: here So first I did like: public static void overrideFonts(final Context context, final View v) { try { if (v instanceof ViewGroup) { ViewGroup vg = (ViewGroup) v; for (int i = 0; i < vg.getChildCount(); i++) { View child = vg.getChildAt(i); overrideFonts(context, child); } } else if (v instanceof TextView) { (