android使用微软雅黑字体
2015-08-26 12:25
288 查看
android使用微软雅黑字体,需要下载字体 ttf文件
下载地址:http://download.csdn.net/detail/xiaoliu123586/9049815
放在assert,然后引用即可,如下图:
下载地址:http://download.csdn.net/detail/xiaoliu123586/9049815
放在assert,然后引用即可,如下图:
Button button= (Button) this.findViewById(R.id.stafflogin); Typeface mTypeface = Typeface.createFromAsset(this.getAssets(),"fonts/wryh.ttf"); button.setTypeface(mTypeface);
相关文章推荐
- Android(java)学习笔记196:Android中Menu的使用(静态和动态)
- Android反编译工具及用法
- 自己写Android图片缓存框架之二级disk缓存
- Android Volley源码分析
- have you declared this activity in your AndroidManifest.xml 解决办法
- Android中Java和JavaScript交互实例
- Android代码规范
- Android性能优化典范(一)
- 基于android的实时音频频谱仪
- Android 再按一次返回键退出的第三种方式
- Android 获取手机设备等的信息
- ant单个或多个渠道包打包参考文档
- android Drawer Arrow Drawable(meun-icon-to-back-arrow)使用,仿知乎菜单栏界面
- Android在onCreate方法中获取view的宽高
- 探秘腾讯Android手机游戏平台之不安装游戏APK直接启动法
- 解读Android之任务和Back栈
- 轻松实现Android 更换皮肤(主题) - 资源打包为apk,使用AssetManager动态解析调用
- android.mk用法
- Android学习笔记(四)深入探讨Activity
- android 点击按钮返回上一层