设置字体
来源:互联网 发布:淘宝助理导出宝贝详情 编辑:程序博客网 时间:2024/05/01 08:21
//设置字体
public static void setFont(Context mContext, TextView textview) {
Typeface fontType = Typeface.createFromAsset(mContext.getAssets(), "fonts/FONT.TTF");
textview.setTypeface(fontType);
}
将字体文件,放在assets/fonts文件夹下
当某个textview需要设置字体时,调用该方法
0 0
- 设置字体
- 字体设置
- 设置字体
- 字体设置
- 设置字体
- 设置字体
- 设置字体
- 设置字体
- 字体设置
- 设置字体
- iOS 设置字体 自定义字体
- iOS 设置字体 自定义字体
- iOS 设置字体 自定义字体
- VS2010字体设置+推荐字体
- ckeditor设置默认字体设置
- Android 字体设置 Typeface 设置
- icewm的字体设置
- XMMS字体设置
- 递归
- 设计模式:工厂模式
- 设计模式之建造者模式
- Json的使用
- Jira6.3.6 Installation
- 设置字体
- 二叉搜索树的后序遍历序列
- POJ 2236
- HashMap详解
- Unity相机视野的缩放,旋转及跟随
- HTML基础知识点总结
- JZOJ 4.1 B组 删数
- poj 2912(并查集,食物链)
- centOS_7_新特性