Android Question Calculate text size of label/edit text

GaNdAlF89

Active Member
Licensed User
Longtime User
How can I do to calculate the correct text size of label and edit text (based on its dimensions) in a layout dinamic/relative?
 

RandomCoder

Well-Known Member
Licensed User
Longtime User
As always, Erel has a better solution. ;)

RandomCoder
 
Upvote 0

GaNdAlF89

Active Member
Licensed User
Longtime User
Another option is to set the text size with the designer and then call AutoScaleAll. Check it with the UI cloud.
How can I do this?

Another question, I've set the label width and height with percentage, there is any formula to set the text size?
Something like this:
B4X:
Label1.TextSize = Label1.Height * 0.3
 
Upvote 0
Top