Android Question Font size on different diagonals and screen resolutions

red30

Well-Known Member
Licensed User
Longtime User
How to correctly set the font size depending on the diagonal / screen resolution?
In Designer->Script there is an ActivitySize parameter. What does it depend on (resolution or screen size)? The entire android device can be very different as 5 ”(1920x1080) or 10” (1280x720). Also, in the settings of some devices, you can change the font size, how will this affect the font size of the application?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Resolution without scale is meaningless.
ActivitySize is the same as the 5'' or 10'' that you wrote above. It is the activity (approximate) diagonal size in inches.

In most cases you don't need to do anything else other then to use AutoScaleAll. Create a single variant with the default settings and the font size will be scaled up on larger devices.

Also, in the settings of some devices, you can change the font size, how will this affect the font size of the application?
It will increase the font size. You can disable it, though it is usually a bad idea.
 
Upvote 0

red30

Well-Known Member
Licensed User
Longtime User
In most cases you don't need to do anything else other then to use AutoScaleAll. Create a single variant with the default settings and the font size will be scaled up on larger devices.
And initially, for what size screen to set the font size? For example, if I install a font for a 7 "tablet and write 222 in 111, then will the font adjust itself for 5" and 10 "devices?
 
Upvote 0
Top