Hello, with the designer I use the percentages of x and y to size panels, labels so that all the views are well proportioned according to the sizes of the screens (smartphones, tablets) where the application will be installed. However, how to adjust the size of fonts that are too small on tablets or too big on smartphones. Thank you for your help
with the designer I use the percentages of x and y to size panels, labels so that all the views are well proportioned according to the sizes of the screens
One option is to add some out-of-bound labels to your layout with the desired fonts and fontsizes. Create some global variables and use them for the programmatically created views.
B4X:
' Process_Globals
Private Settings_BigFont As Typeface
Private Settings_SmallFont As Typeface
' after LoadLayout in Activity_Create or B4XPage_Created
Settings_SmallFont = lblTextFont.Typeface
Settings_BigFont = lblTextBigFont.Typeface