0

I'm working on a project that displays sentences, but sometimes the sentences are too long to fit at a given textSize. The textSize is at a size that I like, not too small for short sentences, but when the sentences pass the borders of the TextView the text disappears. I know I could make it end in '...' but then the sentence is still not read.

So I am looking for a way to decrease textSize ONLY when the text exceeds the TextView borders.

kaio37k
  • 150
  • 1
  • 8

1 Answers1

0

You could use AutoResizeTextView, which changes text size depending on the textview size.

https://stackoverflow.com/a/5535672/5050338

Community
  • 1
  • 1
Benjamin Fell
  • 393
  • 2
  • 11