界面适配的时候发现Paint.setTextSize与TextView.setTextSize传入的单位不一致。
Paint.setTextSize传入的单位是px,
TextView.setTextSize默认传入的单位是sp。

相关文章:

  • 2022-01-16
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2021-07-23
  • 2021-06-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-01
  • 2021-04-25
  • 2021-12-01
  • 2021-07-17
  • 2021-05-16
相关资源
相似解决方案