1

I don't really know where to look as I'm starting out with Android.

How would I automatically make a String assigned to a Button in Android, take on an appropriate font size according to the button's size?

Lucas Kauffman
  • 6,789
  • 15
  • 60
  • 86

1 Answers1

0

extend class Button, override onMeasure method and there you can compute view's height and set proper text size

Buda Gavril
  • 21,409
  • 40
  • 127
  • 196