Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How avoid that the custom user setting influence the font size in the app

Tags:

android

I want to avoid that the setting preferences of the user for the fonts influence the font size of the various TextView etc in my app.

What is the best way?

like image 251
KinkLore Avatar asked Dec 24 '12 14:12

KinkLore


People also ask

How do you prevent system font size changing effects to Android application in xamarin forms?

In the Xamarin. Forms Android MainActivity. cs, override the Resources and set the configuration as default to restrict the font size effect on the application.

How do I change the font size on a specific app?

To make your font size smaller or larger: On your device, open the Settings app. Search and select Font size. To change your preferred font size, move the slider left or right.


1 Answers

I want to avoid that the setting preferences of the user for the fonts influence the font size of the various TextView etc in my app.

Users will only change their font scale if they feel that larger (or, possibly smaller) fonts improve their use of their device. Your app should adjust to match, by using sp units for text sizes. Users may dislike your app if your app refuses to honor their request.

What is the best way?

Do not use sp units for text sizes, and be ready for negative reviews on the Play Store.

like image 184
CommonsWare Avatar answered Sep 23 '22 06:09

CommonsWare