Reputation: 51
I have searched the documentation and have not found an answer so here we go:
Does Android have a resource qualifier to select between different resources when accessibility options are used? Like when the user sets font size to Huge.
I would like use different dimensions on some views when dealing with Huge/Small fonts.
Thanks in advance!
Upvotes: 1
Views: 488
Reputation: 40734
No, there is no resource qualifier for font scale. I assume you're aware of the sp
unit for specifying text size. I would suggest either -
getResources().getConfiguration().fontScale
to determine the scale at runtime, and select or adjust your layout(s) accordingly. sp
rather than dp
for your various layout parameters as well. Upvotes: 1