先在工程中添加字体文件,位置为assets/font/arial.ttf,文件见附件
TextView nameTextView = (TextView) convertView.findViewById(R.id.name);        Typeface tf = Typeface.createFromAsset(context.getAssets(), "font/arial.ttf");         nameTextView.setTypeface(tf);  

更多相关文章

  1. NPM 和webpack 的基础使用
  2. 【阿里云镜像】使用阿里巴巴DNS镜像源——DNS配置教程
  3. Android(安卓)自定义View引用xml布局
  4. Android(安卓)下载文件及写入SD卡
  5. Android的断点设置
  6. 在RelativeLayout布局中可以设置标签的android:layout_toLeftO..
  7. 使用Scala开发Android
  8. Android(安卓)FragmentManage FragmentTransaction介绍
  9. Android(安卓)Google Maps API key 申请

随机推荐

  1. ANR android
  2. 【Android Studio使用教程 7】AndroidStu
  3. Android(安卓)学习手札(一) 应用程序架构
  4. Android图表控件MPAndroidChart——LineC
  5. android 下滤镜效果的实现
  6. android 常用布局公用属性
  7. Android 开发框架
  8. Android中Linux suspend/resume流程
  9. android中的(singleLine)单行显示 none sta
  10. 组合android的theme属性