Reputation: 884
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!
Upvotes: 3
Views: 2529
Reputation: 1006614
I would like to override the font size of the systems settings just for this app.
That is not strictly possible. Anything measured in sp
will take the font scaling into account.
Your short-term solution will be to change those dimensions to dp
, as 1 sp
equals 1 dp
at 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.
Upvotes: 9