I’ve got the problem, if someone edits the font size of the android system (in Settings->Display->Font Size), my app layout doesn’t fit anymore. I developed my app in normal font size.
I would like to override the font size of the systems settings just for this app.
Thanks!
That is not strictly possible. Anything measured in
spwill take the font scaling into account.Your short-term solution will be to change those dimensions to
dp, as 1spequals 1dpat normal font scale.That being said, please consider updating your UI to be more flexible about font scale, as that is important for some users, whose vision is not as acute.