Disable system font style affect your android application.

We generally define font size as “sp” in android xml file.
An sp is the same base unit, but is scaled by the user’s preferred text size (it’s a scale-independent pixel), so you should use this measurement unit when defining text size (but never for layout sizes).

* Use dp instead of sp.
Then you get the correct scaling according to have the dpi on different screens but it wont change depending on the users selected font size in your android device.


There are no comments.

Leave a Reply