0

Im trying to do the following:

Given a max dimensions (for example 400x400). Make a text whose size varies to fill the space. For example if the desired text is "A" it will have a high textSize value, but if I put a long sentence its textSize should be reduced in order to fit the size.

Is possible to implement that easily? Thanks

Addev
  • 31,819
  • 51
  • 183
  • 302

2 Answers2

1

Depends on your level of experience. "Easily" is subjective. There are implementations out there that provide decent starting places.

Community
  • 1
  • 1
Brian Dupuis
  • 8,136
  • 3
  • 25
  • 29
1
Give the textview fill_parent hight and width so that as you type e.g ASDF then it will automatically reduce size and if only "A" then it will show max hight and widht.
This textview will set in layout which hight and width you will set as you want like 400*400.
If any double catch me..

Best V.k

vk hooda
  • 67
  • 7