public void setFont(String font_type, TextView[] fontArray)
{
Typeface face = Typeface.createFromAsset(getAssets(), "fonts/" + font_type);
for (int i = 0; i < fontArray.length; i++){
fontArray.setTypeface(face);
}
}
I want to add different textviews to different typeface. i could not find out how to implement foreach loop correctly.