I have defined font size in android application, it works perfectly in all screen sizes, but when I change font size (appearance small, medium, large or x-large) from android phone settings, the UI is messed up with respect to font.
Asked
Active
Viewed 156 times
1 Answers
2
You have to use dp for setting the size of Text, it will sort your problem.
You should also refer this SO for when to using SP and DP.

Rounak Lahoti
- 138
- 1
- 12
-
Thanks [link](https://stackoverflow.com/questions/11638691/android-sp-vs-dp-texts-what-would-adjust-the-scale-and-what-is-the-philosoph) **link** helped me – Mitesh Panchal Jul 05 '17 at 09:42
-
It's my pleasure. Happy to know to that it helped. – Rounak Lahoti Jul 05 '17 at 12:01