1. Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), "fonts/huawenxingkai.ttf");

if(convertView instanceof TextView) {
((TextView) convertView).setTypeface(mTypeface);
((TextView) convertView).setTextSize(24);
((TextView) convertView).setGravity(Gravity.CENTER);
((TextView) convertView).setTextColor(mContext.getResources().getColor(R.color.common_black));
((TextView) convertView).setHeight(itemHeight);
}

2. Typeface mTypeface = Typeface.create("ltxh", Typeface.NORMAL);

相关文章:

  • 2021-06-23
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2021-12-11
  • 2021-05-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-13
  • 2021-06-26
  • 2021-05-26
相关资源
相似解决方案