If I assign an integer value to change a certain text size of a TextView using java code, the value is interpreted as pixel (px).
Now does anyone know how to assign it in sp?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
http://developer.android.com/reference/android/widget/TextView.html#setTextSize%28int,%20float%29
Example: