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
  • 51,611
  • 92
  • 240
  • 358

1 Answers1

1

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

coder
  • 10,236
  • 17
  • 70
  • 124