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
  • 521
  • 1
  • 8
  • 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

2

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
  • 268,359
  • 30
  • 341
  • 380