Change font face in all application
I 开发者_开发技巧want to change the font face in my application. I want change for all components TextView in my application, how can do that ?
UPDATED ANSWER:
@Override
public View getView(int position, View view, ViewGroup viewGroup)
{
View v = super.getView(position, view, viewGroup);
((TextView)v).setTypeface(font);
return v;
}
Override the default getView method and set your font as typeface as mentioned above.
I think the best way for you is to set theme for your application. Applying styles and themes link should help.
精彩评论