Android Question Fit label text based on label size

Hi,
How can I adjust the text size based on the size of the label?
I used a piece of code in the forum, but the text size inside the label became smaller and did not fit perfectly.
Thanks for your tips
 

Mahares

Expert
Licensed User
Longtime User
How can I adjust the text size based on the size of the label?
Did you take a quick look at this:
or this:
https://www.b4x.com/android/forum/threads/automatically-set-the-text-size.93288/
 
Upvote 0
thank you very much!
but i cant create the a label with this class by programming.so i think that this class just we use to desiner
 
Upvote 0
thank you,
But I do not know which one to use!
I have to make a label with the for loop and add it to a panel. The text size must also fit the walls of the label.
I create a label with the AutoTextSizeLabel class, but it gives an error when compiling.
Please help with the code.
Thank you sincerely
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…