0

Regarding setting the font size for an Android app, is there a way I can test the size of any text, like Font.getAdvance(String)?

Aitul
  • 2,982
  • 2
  • 24
  • 52
Frank
  • 28
  • 9

1 Answers1

2

You can use Paint.measureText.

You can refer this question also: How to get string width on Android?

Community
  • 1
  • 1
Karthik
  • 3,509
  • 1
  • 20
  • 26