android系统自带的字体都不支持显示音标,只能自己把支持音标显示的字体加入项目中
在 C:\Windows\Fonts\Segoe UI目录下选择一个常规字体(segoeui.ttf)复制出来放在assets/font/目录下
Typeface mFace=Typeface.createFromAsset(getAssets(),  "font/segoeui.ttf" ); 
youTextView.setTypeface(mFace);
youTextView.setText("text");

相关文章:

  • 2022-12-23
  • 2021-09-14
  • 2021-12-20
  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
  • 2021-06-02
  • 2021-07-04
  • 2022-12-23
相关资源
相似解决方案