1

Can I find out size in dp or px of string which I need to show on screen ? What I need to do is to have one TextView with "o" sign and above centered another String with full name. I thought to use FrameLayout and set programmatically margins. Is there better way to do this ( needs to be programmatically ) ?

Damir
  • 54,277
  • 94
  • 246
  • 365

1 Answers1

1

You can use the getTextSize() method to the size in pixels.

coder
  • 10,460
  • 17
  • 72
  • 125