Layout (font size) broken, when user changes size of the font in device settings

Hi, I’ve already implemented dynamic font size - it’s working very well on all kinds of android devices (various screen sizes, ppi etc.).
The problem is when user changes font size from “medium” to other one, for example to “big”.
Is it possible in makeroid to handle such situation?
It’s possible in java as described here -->


If it’s not possible in makeroid I’ll move this topic to “I want” section.

Regards,
BeeriaApps

Make use of @Taifun’s Settings Extension

bild

/Boban

5 Likes

Test app: Button1, Label1 and TextBox1 is controlled by @Taifun’s Settings Extension.

FontSizeTest.apk (4.1 MB)
FontSizeTest.aia (18.6 KB)

/Boban

4 Likes

THANK YOU VERY MUCH!
It solved my problem.
Although there is a small bug in your example code - it works not as supposed when font is smaller than “normal”. Always divide should be used, not multiply. Fixed blocks -->

Thanks again and regards,
BeeriaApps

2 Likes

You’re absolutely right, don’t know how I missed it.

/Boban

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.