Setting Text Size in Android Applications

view story

http://stackoverflow.com – Im using Eclipse to write an android app and using the latest API to compile. I am setting the TextSize of multiple TextView controls. Some of the controls were defined in XML, while some of the TextView controls were created dynamically in code. When I look at TextView controls in the application the text sizes are different. I'm setting the text sizes using the same dimension, so I don't understand why it's coming out differently. Here's the dimension I have defined: <!-- Default Font Size --> <dimen name="font_size">12sp</dimen> Here is where I am setting one of (HowTos)