Android Question “Label” automatic resize text depending on length of input

luisftv

Member
Licensed User
Longtime User
I have a “label” into which I display random data. Usually, is from one character to a max of 20 or so, in one or two lines within the label box which by the way occupies 90% of the device screen.

How do I make it so that when it is only displaying one letter or number it will make the font super big to fit the size of the “label” box, and that when I am displaying the 20 letters or numbers it will shrink the font so that it will fit in the “label” box, even if the font is very small?


Thanks.
 

luisftv

Member
Licensed User
Longtime User
Klaus... Thank you so much...

Once again, you got the answer, and it works... as always with your replies... perfectly:

Thanks again.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…