开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜