Closed Kpsixas closed 6 years ago
Is there a way to programmatically set the text size to ssp values? What i mean: if you use sp units, in code you can set the text size like this
button.setTextSize(TypedValue.COMPLEX_UNIT_SP, 15);
but what about ssp? Is there any way to get this base in code?
You can use: button.setTextSize(TypedValue.COMPLEX_UNIT_PX,getResources().getDimensionPixelSize(R.dimen._12ssp));
Thank you very much!
Is there a way to programmatically set the text size to ssp values? What i mean: if you use sp units, in code you can set the text size like this
button.setTextSize(TypedValue.COMPLEX_UNIT_SP, 15);
but what about ssp? Is there any way to get this base in code?