1

I set font size 14sp for my textview in android , the problem is , when I change my phone text size , in the application it changes the size either , How can I prevent this ? How can I force text view to use the defined text size ?

donald draper
  • 561
  • 2
  • 9
  • 24
  • See this http://stackoverflow.com/questions/21545906/how-to-make-font-sizes-in-app-to-not-get-effected-by-changing-settings-font-size – CandleCoder Feb 14 '16 at 05:48

1 Answers1

3

When you declare a font with a size measured in sp ("scaled pixels") that measurement is supposed to be affected by the device font settings. That's fully expected.

If you want a font size that never changes with the font settings, use dp measurements instead.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441