iOS Question Font Scale vs screen size issue

BillMeyer

Well-Known Member
Licensed User
Longtime User
@techknight

In iOS, this is one of the better features and does not require the Android way of doing it:

In your Designers, select your label and do the following: (Check the red underlines)

upload_2019-6-8_14-56-53.png


Programatically you can do the following:

B4X:
lblUnderHeader.AdjustFontSizeToFit = True
lblUnderHeader.Multiline = True

and it should work the same. Experiment with the amount of text you have if multiline is not ticked - it can become very small and not legible.

Remember, fitting to your screen here depends on your anchors (you can use the principle I described in that post you refer to above to position your place holders and adjusting the font with the code above)

I trust this will work and explain how I do it it on iOS.
 
Upvote 0

techknight

Well-Known Member
Licensed User
Longtime User
I already figured this out for labels.

the issue still remains with buttons, and other controls.

I am attempting to do it this way:
B4X:
cmdNumber0.CustomLabel.AdjustFontSizeToFit = True

It is painful to list out all the controls and do this manually, I wish there was a loop iteration somewhere I could do this with. There is probably a get all views shortcut or something I am missing that would help here.
 
Last edited:
Upvote 0
Top